-
-
Save Kptainflintt/5d324d0388c07e14e5401ee6fa74b5cb to your computer and use it in GitHub Desktop.
Default configfor grafana-agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integrations: | |
prometheus_remote_write: | |
- basic_auth: | |
password: <entrer ici la clé API> | |
username: <entre l'ID prometheus (récupérable sur la page du compte Grafana, section Prometheus> | |
url: https://prometheus-us-central1.grafana.net/api/prom/push | |
windows_exporter: | |
enabled: true | |
logs: | |
configs: | |
- clients: | |
- basic_auth: | |
password: <entrer ici la clé API> | |
username: <entre l'ID Loki (récupérable sur la page du compte Grafana, section Loki> | |
url: https://logs-prod3.grafana.net/loki/api/v1/push | |
name: integrations | |
positions: | |
filename: /tmp/positions.yaml | |
scrape_configs: | |
- job_name: integrations/windows-exporter-application | |
pipeline_stages: | |
- json: | |
expressions: | |
source: source | |
- labels: | |
source: | |
relabel_configs: | |
- source_labels: | |
- computer | |
target_label: agent_hostname | |
windows_events: | |
bookmark_path: C:\Users\Admin\AppData\Roaming\bookmark-application.xml | |
eventlog_name: Application | |
labels: | |
job: integrations/windows_exporter | |
use_incoming_timestamp: true | |
xpath_query: '*' | |
- job_name: integrations/windows-exporter-system | |
pipeline_stages: | |
- json: | |
expressions: | |
source: source | |
- labels: | |
source: | |
relabel_configs: | |
- source_labels: | |
- computer | |
target_label: agent_hostname | |
windows_events: | |
bookmark_path: C:\Users\Admin\AppData\Roaming\bookmark-system.xml | |
eventlog_name: System | |
labels: | |
job: integrations/windows_exporter | |
use_incoming_timestamp: true | |
xpath_query: '*' | |
target_config: | |
sync_period: 10s | |
metrics: | |
configs: | |
- name: integrations | |
remote_write: | |
- basic_auth: | |
password: <entrer ici la clé API> | |
username: <entre l'ID prometheus (récupérable sur la page du compte Grafana, section Prometheus> | |
url: https://prometheus-us-central1.grafana.net/api/prom/push | |
global: | |
scrape_interval: 60s | |
wal_directory: /tmp/grafana-agent-wal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment