Skip to content

Instantly share code, notes, and snippets.

@cmwylie19
Last active April 21, 2022 18:38
Show Gist options
  • Select an option

  • Save cmwylie19/01083dc5a627aacbf48bbc76187f20c1 to your computer and use it in GitHub Desktop.

Select an option

Save cmwylie19/01083dc5a627aacbf48bbc76187f20c1 to your computer and use it in GitHub Desktop.
Tell Prometheus what to scrape
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: starburst-enterprise
name: starburst-monitor
namespace: <installation_namespace>
spec:
endpoints:
- port: metrics
scrapeTimeout: 2s
interval: 2s
namespaceSelector:
any: true
matchNames:
- starburst-sb5
selector:
matchLabels:
app: starburst-enterprise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment