pez-infra/terraform/grafana/fleet_pipelines/plex.alloy

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]
}