-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add service monitor defintion (if stack_deploy_metrics, deafiu…
…lt 'yes')
- Loading branch information
Alan Christie
committed
May 20, 2024
1 parent
e719073
commit 5e419e7
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
roles/fragalysis-stack/templates/servicemonitor-stack.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
kind: ServiceMonitor | ||
apiVersion: monitoring.coreos.com/v1 | ||
metadata: | ||
name: fragalysis-stack | ||
namespace: {{ stack_namespace }} | ||
spec: | ||
# A selector for the Public API Service. | ||
# The service to be scraped. | ||
selector: | ||
matchLabels: | ||
name: stack | ||
namespaceSelector: | ||
matchNames: | ||
- {{ stack_namespace }} | ||
# The endpoint (port name) | ||
# and the scraping interval | ||
endpoints: | ||
- port: http | ||
interval: 60s |