File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ https://raw.githubusercontent.com/coralogix/dhall-prometheus-operator/v3.1.0/pac
20
20
### Example ServiceMonitor
21
21
``` dhall
22
22
let kubernetes = https:// raw. githubusercontent. com/ dhall- lang/ dhall- kubernetes/ 4 ad58156b7fdbbb6da0543d8b314df899feca077/ defaults. dhall sha256: 4450e23 dc81975d111650e06c0238862944bf699537af6cbacac9c7e471dfabe
23
+
23
24
let Kubernetes = https:// raw. githubusercontent. com/ dhall- lang/ dhall- kubernetes/ 4 ad58156b7fdbbb6da0543d8b314df899feca077/ types. dhall sha256: e48e21b807dad217a6c3e631fcaf3e950062310bfb4a8bbcecc330eb7b2f60ed
24
25
25
- let PrometheusOperator = (https:// raw. githubusercontent. com/ coralogix/ dhall- prometheus- operator/ v3. 1.0 / package. dhall) . v1 sha256: fca0c036575706b102a4e32d1644d12dda057ae40c3d9b3f37ad45346917b14d
26
+ let PrometheusOperator = (https:// raw. githubusercontent. com/ coralogix/ dhall- prometheus- operator/ v3. 1.0 / package. dhall sha256: fca0c036575706b102a4e32d1644d12dda057ae40c3d9b3f37ad45346917b14d) . v1
26
27
27
- in PromethesOperator . ServiceMonitor:: {
28
+ in PrometheusOperator . ServiceMonitor:: {
28
29
, metadata =
29
30
kubernetes. ObjectMeta // { name = " example" }
30
31
, spec =
@@ -35,16 +36,16 @@ in PromethesOperator.ServiceMonitor::{
35
36
toMap { app = " example" }
36
37
}
37
38
, endpoints =
38
- [ Prometheus .Endpoint.Union. TargetPort
39
- Prometheus .Endpoint. TargetPort:: {
39
+ [ PrometheusOperator .Endpoint.Union. TargetPort
40
+ PrometheusOperator .Endpoint. TargetPort:: {
40
41
, targetPort = Kubernetes.IntOrString. String " example"
41
42
, interval = Some " 60s"
42
43
, scrapeTimeout = Some " 40s"
43
44
}
44
45
]
45
46
, namespaceSelector =
46
47
Some
47
- ( Prometheus .NamespaceSelector. Any { any = True }
48
+ ( PrometheusOperator .NamespaceSelector. Any { any = True }
48
49
)
49
50
}
50
51
}
You can’t perform that action at this time.
0 commit comments