Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
selector:
matchLabels:
app: prometheus-example-app
serviceDiscoveryRole: EndpointSlice
----

where:
Expand Down Expand Up @@ -118,6 +119,7 @@ spec:
selector:
matchLabels:
app: prometheus-example-app
serviceDiscoveryRole: EndpointSlice
----

where:
Expand Down Expand Up @@ -182,6 +184,7 @@ spec:
selector:
matchLabels:
app: prometheus-example-app
serviceDiscoveryRole: EndpointSlice
----

where:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ spec:
selector:
matchLabels:
app: prometheus-example-app
serviceDiscoveryRole: EndpointSlice
----
+
[NOTE]
Expand Down
4 changes: 4 additions & 0 deletions modules/monitoring-specifying-how-a-service-is-monitored.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
selector:
matchLabels:
app: prometheus-example-app
serviceDiscoveryRole: EndpointSlice
----
+
--
Expand All @@ -63,6 +64,9 @@ Defines endpoint ports to be scraped by Prometheus.

`selector`::
Defines a selector to match your service based on its metadata labels.

`serviceDiscoveryRole`::
Defines the service discovery role to be used by Prometheus.
--
+
[NOTE]
Expand Down