Commit graph

30 commits

Author SHA1 Message Date
eacbae416c
Add target_files and relabel_configs options for blackbox and snmp jobs 2025-02-13 00:44:30 +01:00
Julian Rother
1daf64a848
promtail: Support metrics scraping 2024-12-08 06:57:00 +01:00
Julian Rother
5045dc7fde
promtail: Add more systemd-journal fields as structured metadata 2024-11-24 05:12:55 +01:00
Julian Rother
ba32c8ee83
promtail: Move scrape_configs into prometheus_agent.agents.promtail.scrape_jobs dict 2024-11-23 01:42:18 +01:00
Julian Rother
7d0415ecf6
promtail: Move hard-coded config to prometheus_agent.agents.promtail.config inventory key 2024-11-23 01:09:47 +01:00
Julian Rother
71c00d0cce
promtail: Add level metadata field for systemd-journal 2024-11-19 04:06:33 +01:00
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
nd
17f40221b6
add basic auth support 2024-02-26 22:25:30 +01:00
psy
17c1bb0ffb
add postfix bounces.log 2022-12-29 12:31:23 +01:00
nd
51346d08b7
add snmp exporter from fabbs 2022-06-29 21:09:34 +02:00
nd
d9ad8c7ee7
lower stunnel log level 2021-12-02 22:53:23 +01:00
nd
248ed5fd02
add promtail support 2021-11-29 21:23:44 +01:00
nd
1b9547ecd8
Merge branch 'master' of ssh://git-ssh.notandy.de:2222/ansible/roles/prometheus-agent 2021-09-26 01:21:48 +02:00
nd
c769595755
add support for params and different metrics paths for proxied exporter 2021-09-25 23:54:33 +02:00
nd
eceb918fd1
fix debian stretch support 2021-08-14 16:21:47 +01:00
nd
dcb85ef10a
no longer run as root, support debian stretch 2021-08-01 21:33:33 +02:00
nd
8442746ec1
bind on ipv6 as well 2021-03-12 22:21:13 +01:00
nd
a8a82ea08b
add support for custom scraper times for procxied exporters 2020-12-24 15:56:46 +01:00
nd
72997385cd
add support to add labels to proxied metrics 2020-12-24 00:58:03 +01:00
nd
9e38ba7d64
fixed jobs without labels 2020-06-07 01:14:58 +02:00
nd
d352baab14
fixed nodes without blackbox exporter 2020-06-07 00:36:35 +02:00
nd
3e2b2dd451
fixed labels and made ipv4 the default 2020-06-07 00:08:42 +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
2c33fcc9cf
added (working) proxy support 2020-05-30 22:14:44 +02:00
nd
0494c4907a
started support for more then node exporter 2020-05-30 14:10:52 +02:00
nd
246842b66e
added support to overwrite scrap intervall 2020-05-23 23:08:06 +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