mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
20 lines
No EOL
406 B
Text
20 lines
No EOL
406 B
Text
prometheus.remote_write "grafana_cloud" {
|
|
endpoint {
|
|
url = "https://prometheus-prod-55-prod-gb-south-1.grafana.net/api/prom/push"
|
|
|
|
basic_auth {
|
|
username = "3166394"
|
|
password = sys.env("GCLOUD_RW_API_KEY")
|
|
}
|
|
}
|
|
}
|
|
|
|
prometheus.scrape "plex" {
|
|
targets = [
|
|
{
|
|
"__address__" = "localhost:9000",
|
|
"job" = "plex",
|
|
},
|
|
]
|
|
forward_to = [prometheus.remote_write.grafana_cloud.receiver]
|
|
} |