forked from philips-labs/terraform-cloudfoundry-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
30 lines (24 loc) · 879 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
output "grafana_endpoint" {
description = "The endpoint where Grafana is reachable on"
value = cloudfoundry_route.grafana.endpoint
}
output "grafana_id" {
description = "The Grafana app ID"
value = cloudfoundry_app.grafana.id
}
output "grafana_database_metrics_endpoint" {
description = "The internal metrics endpoint for the Grafana database"
value = "${join("", cloudfoundry_route.pg_exporter.*.endpoint)}:9187"
}
output "grafana_database_metrics_host" {
description = "The Grafana metrics internal hostname"
value = join("", cloudfoundry_route.pg_exporter.*.endpoint)
}
output "grafana_database_metrics_port" {
description = "The Grafana metrics internal port"
value = "9187"
}
output "grafana_database_metrics_app_id" {
description = "The metrics app ID"
value = join("", cloudfoundry_app.pg_exporter.*.id)
}