Merge ~jsimpso/prometheus-snap:master into prometheus-snap:master
Proposed by
James Simpson
Status: | Merged |
---|---|
Approved by: | James Simpson |
Approved revision: | bb4a970813d16caabef0d2957eb8d1fef2fc12dd |
Merged at revision: | 7a784c92e20418d81b1f66bcb7fa173b8bda7c40 |
Proposed branch: | ~jsimpso/prometheus-snap:master |
Merge into: | prometheus-snap:master |
Diff against target: |
86 lines (+50/-5) 2 files modified
snap_config_wrapper (+44/-5) snapcraft.yaml (+6/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Collins | lgtm | Approve | |
prometheus-snap-developers | Pending | ||
Review via email: mp+428753@code.launchpad.net |
Commit message
Run daemon as non-root user
To post a comment you must log in.
ps output here showing that prometheus is now launched from the wrapper as "snap_daemon" rather than root:
jsimpso@kif:~$ sudo pgrep prometheus -a s-alertmanager/ 50/bin/ prometheus- alertmanager. wrapper s/x7/bin/ prometheus. wrapper s/x7/bin/ prometheus --config.file /var/snap/ prometheus/ x7/prometheus. yml --storage. tsdb.path= /var/snap/ prometheus/ common/ tsdb s/x7/bin/ prometheus --config.file /var/snap/ prometheus/ x7/prometheus. yml --storage. tsdb.path= /var/snap/ prometheus/ common/ tsdb
1891 /bin/sh /snap/prometheu
2062437 /bin/sh /snap/prometheu
2062642 /snap/prometheu
jsimpso@kif:~$ sudo ps aux | grep [2]062642
snap_da+ 2062642 0.1 0.2 938440 75548 ? Sl 11:17 0:00 /snap/prometheu
jsimpso@kif:~$ systemctl is-active snap.prometheus .prometheus. service
active