mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
31 lines
595 B
Text
31 lines
595 B
Text
|
|
prometheus.scrape "local_app" {
|
||
|
|
targets = [
|
||
|
|
{
|
||
|
|
__address__ = "localhost:6070",
|
||
|
|
},
|
||
|
|
{
|
||
|
|
__address__ = "localhost:3060",
|
||
|
|
},
|
||
|
|
]
|
||
|
|
|
||
|
|
metrics_path = "/metrics"
|
||
|
|
scrape_timeout = "500ms"
|
||
|
|
scrape_interval = "15s"
|
||
|
|
|
||
|
|
job_name = sys.env("GRAFANA_ENVIRONMENT")
|
||
|
|
|
||
|
|
forward_to = [
|
||
|
|
prometheus.remote_write.grafana_cloud.receiver,
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
prometheus.remote_write "grafana_cloud" {
|
||
|
|
endpoint {
|
||
|
|
url = sys.env("GRAFANA_ENDPOINT")
|
||
|
|
|
||
|
|
basic_auth {
|
||
|
|
username = sys.env("GRAFANA_PROM_USERNAME")
|
||
|
|
password = sys.env("GRAFANA_PROM_PASSWORD")
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|