Commit graph

18 commits

Author SHA1 Message Date
Julian Rother
c236bb61a4
Use Grafana's upstream Debian packages for promtail
Migration playbook:

- name: Cleanup old promtail install
  hosts: all
  tasks:
  - name: Stop and disable old service
    when: prometheus_agent.agents.promtail.enable
    service:
      name: grafana-promtail
      state: stopped
      enabled: false
  - name: Migrate state dir
    when: prometheus_agent.agents.promtail.enable
    copy:
      src: /var/lib/grafana-promtail/
      dest: /var/lib/promtail/
      remote_src: yes
  - name: Uninstall old package
    when: prometheus_agent.agents.promtail.enable
    apt:
      name: grafana-promtail
      state: absent
      purge: true # Removes user, group and /var/lib/grafana-promtail
  - name: create promtail group
    when: prometheus_agent.agents.promtail.enable
    group:
      name: promtail
      system: true
  - name: create promtail user
    when: prometheus_agent.agents.promtail.enable
    user:
      name: promtail
      system: true
      group: promtail
      home: /var/lib/promtail
  - name: Fix state dir owner and group
    when: prometheus_agent.agents.promtail.enable
    file:
      name: /var/lib/promtail/
      state: directory
      recurse: true
      owner: promtail
      group: promtail
2024-11-02 01:58:16 +01:00
nd
dfa8092538 Merge branch 'master' of https://git.cccv.de/infra/ansible/roles/prometheus-agent 2024-05-20 13:35:10 +02:00
Julian Rother
4ffb1d7f2e
Add AptUpgradesPending alert 2024-04-18 01:43:19 +02:00
nd
51346d08b7
add snmp exporter from fabbs 2022-06-29 21:09:34 +02:00
nd
3391c2b8a2 updated stunnel package name 2022-06-19 12:52:59 +02:00
psy
c9031f4573
fix typo 2022-03-26 16:23:16 +01:00
nd
248ed5fd02
add promtail support 2021-11-29 21:23:44 +01:00
nd
5b50d7e913
added cap net admin handling 2021-08-17 15:34:16 +01:00
nd
a9d49ae648
fix linter 2021-07-17 01:49:25 +02:00
Julian Rother
22329ccb47
introduced node-exporter-textfile group 2021-05-01 16:33:24 +02:00
nd
cf89224111
fixed some alerts 2020-11-20 22:56:28 +01:00
nd
3514624106
ensure stunnel is running and enabled 2020-10-19 21:32:03 +02:00
nd
fae35db007
add ansible_fqdn as certificate san 2020-10-19 17:51:29 +02:00
nd
90139100f4
fix new ansible default file mode 2020-08-22 19:42:08 +02:00
nd
f772558e31
added support for the blackbox exporter 2020-06-06 23:41:06 +02:00
nd
7997ebfb59
added default alerts for nodes 2020-06-02 17:34:03 +02:00
nd
c009ac013b
cleaned up scraper config 2020-05-22 18:54:04 +02:00
nd
e42f1f6b9a
Initial commit 2020-05-22 14:47:25 +02:00