gocrane / fadvisor

Fadvisor(FinOps Advisor) is a collection of exporters which collect cloud resource pricing and billing data guided by FinOps, insight cost allocation for containers and kubernetes resource
Apache License 2.0
67 stars 26 forks source link

fadvisor use servicemonitors to configure prometheus scrape #18

Open tommylxf opened 2 years ago

tommylxf commented 2 years ago

k8s version: 1.21.10 fadvisor version: v0.3.0

zhuw0312 commented 2 years ago
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: crane-metrics
  namespace: monitoring
  labels:
    release: prometheus-operator
spec:
  namespaceSelector:
    matchNames:
    - crane-system
  selector:
    matchLabels:
      app.kubernetes.io/name: fadvisor
  endpoints:
  - port: http