Skip to content

Commit

Permalink
Use prometheus user for systemd unit services
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestas-poskus committed Oct 1, 2016
1 parent 01e2310 commit 5366b6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions templates/alert_manager.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ExecStart={{ prometheus_install_dir }}/{{ prometheus_alert_manager_archive }}/al
Restart=always
RestartSec=20
TimeoutSec=300
User=root
Group=root
User={{prometheus_owner}}
Group={{prometheus_group}}
StandardOutput=journal
StandardError=journal

Expand Down
4 changes: 2 additions & 2 deletions templates/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ExecStart={{ prometheus_install_dir }}/{{ prometheus_node_exporter_archive }}/no
Restart=always
RestartSec=20
TimeoutSec=300
User=root
Group=root
User={{prometheus_owner}}
Group={{prometheus_group}}
StandardOutput=journal
StandardError=journal

Expand Down
4 changes: 2 additions & 2 deletions templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ExecStart={{ prometheus_install_dir }}/{{ prometheus_archive }}/prometheus {% fo
Restart=always
RestartSec=20
TimeoutSec=300
User=root
Group=root
User={{prometheus_owner}}
Group={{prometheus_group}}
StandardOutput=journal
StandardError=journal

Expand Down

0 comments on commit 5366b6c

Please sign in to comment.