community icon indicating copy to clipboard operation
community copied to clipboard

Metrics for galley and citadel

Open mohan-nagandlla opened this issue 2 years ago • 1 comments

Hi all,

I have deployed the istio 1.13 version and I have enabled the Prometheus service monitor and pod monitor for istiod and envoy metrics. I am able to get the istio_agent metrics and pilot metrics and envoy metrics the thing is like I am just getting 3 metrics for the galley and citadel. how to get all the metrics and isn't istiod not cover all the components?

i used this manifest file to add the scrap target to Prometheus do I need to add more

apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
  name: envoy-stats-monitor
  namespace: istio-system
  labels:
    purpose: prometheus-prometheus
spec:
  selector:
    matchExpressions:
    - {key: istio-prometheus-ignore, operator: DoesNotExist}
  namespaceSelector:
    any: true
  jobLabel: envoy-stats
  podMetricsEndpoints:
  - path: /stats/prometheus
    interval: 15s
    relabelings:
    - action: keep
      sourceLabels: [__meta_kubernetes_pod_container_name]
      regex: "istio-proxy"
    - action: keep
      sourceLabels: [__meta_kubernetes_pod_annotationpresent_prometheus_io_scrape]
    - sourceLabels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
      action: replace
      regex: ([^:]+)(?::\d+)?;(\d+)
      replacement: $1:$2
      targetLabel: __address__
    - action: labeldrop
      regex: "__meta_kubernetes_pod_label_(.+)"
    - sourceLabels: [__meta_kubernetes_namespace]
      action: replace
      targetLabel: namespace
    - sourceLabels: [__meta_kubernetes_pod_name]
      action: replace
      targetLabel: pod_name
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    purpose: prometheus-prometheus
  name: istio
  namespace: istio-system
spec:
  endpoints:
  - path: /metrics
    port: http-monitoring
  - path: /stats/prometheus
    relabelings:
    - action: keep
      regex: .*-envoy-prom
      sourceLabels:
      - __meta_kubernetes_pod_container_port_name
  namespaceSelector:
    matchNames:
    - istio-system
  selector:
    matchLabels:
      release: istio

image image

mohan-nagandlla avatar Mar 21 '22 09:03 mohan-nagandlla

I think that is all the metrics prefixed with galley_ and citadel that exist?

howardjohn avatar Mar 21 '22 15:03 howardjohn

Hi @mohan-nagandlla!

We don't use this repository for project support. Please feel free to ask your question on our support forum, https://discuss.istio.io/, if it's still an issue.

craigbox avatar Sep 29 '22 00:09 craigbox