Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] What would be the right Servicemonitor configuration for Kubernetes? #119

Open
khazamov opened this issue Mar 12, 2024 · 1 comment

Comments

@khazamov
Copy link

Hello, I've kubernetes cluster with airflow running. The following is used for statsd service

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    k8slens-edit-resource-version: v1
    name: airflow-prometheus-servicemonitor
  name: airflow-prometheus-servicemonitor
  namespace: airflow-dev
spec:
  endpoints:
  - interval: 30s
    port: statsd-scrape
  namespaceSelector:
    matchNames:
    - airflow-dev
  selector:
    matchLabels:
      component: statsd
      tier: airflow

but I'd like to setup servicemonitor for the metrics exported by airflow-exporter. (I can see them in web interface). Can someone direct me to the right answer please?

@Siradjedd
Copy link

@khazamov how did you do to see the metrics on the web interface please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants