mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 10:59:56 +00:00
feat!: create ansible EN role (#2)
This commit is contained in:
40
templates/vmagent-config.yml.j2
Normal file
40
templates/vmagent-config.yml.j2
Normal file
@ -0,0 +1,40 @@
|
||||
scrape_configs:
|
||||
- job_name: external-node
|
||||
static_configs:
|
||||
- targets: ['external_node:{{ metrics_port }}']
|
||||
relabel_configs:
|
||||
- source_labels: [instance]
|
||||
target_label: instance
|
||||
replacement: '{{ node_name | mandatory }}'
|
||||
- job_name: vmagent
|
||||
static_configs:
|
||||
- targets:
|
||||
- "127.0.0.1:8429"
|
||||
relabel_configs:
|
||||
- source_labels: [instance]
|
||||
target_label: instance
|
||||
replacement: '{{ node_name | mandatory }}'
|
||||
- job_name: node-exporter
|
||||
static_configs:
|
||||
- targets:
|
||||
- "node-exporter:9100"
|
||||
relabel_configs:
|
||||
- source_labels: [instance]
|
||||
target_label: instance
|
||||
replacement: '{{ node_name | mandatory }}'
|
||||
- job_name: cadvisor
|
||||
static_configs:
|
||||
- targets:
|
||||
- "cadvisor:8080"
|
||||
relabel_configs:
|
||||
- source_labels: [instance]
|
||||
target_label: instance
|
||||
replacement: '{{ node_name | mandatory }}'
|
||||
- job_name: postgres-exporter
|
||||
static_configs:
|
||||
- targets:
|
||||
- "postgres-exporter:9187"
|
||||
relabel_configs:
|
||||
- source_labels: [instance]
|
||||
target_label: instance
|
||||
replacement: '{{ node_name | mandatory }}'
|
||||
Reference in New Issue
Block a user