Prometheus

Kubernetesでよく利用するコマンドやマニフェスト等のカンペ

Helm利用時に作業効率を上げるためのおすすめ関連記事

https://fand.jp/technologies/make-helm-comfortable-with-helmfile/
https://fand.jp/technologies/make-helm-comfortable-with-helmfile/
https://fand.jp/technologies/make-helm-comfortable-with-helmfile/
Notice: You are in development mode or could not get the remote server

Prometheus Operator

Prometheus Operator セットアップ

https://fand.jp/technologies/how-to-install-prometheus-operator-with-helm/
https://fand.jp/technologies/how-to-install-prometheus-operator-with-helm/
https://fand.jp/technologies/how-to-install-prometheus-operator-with-helm/
Notice: You are in development mode or could not get the remote server

ServiceMonitor

kubectl -n monitoring get prometheus -o yaml
spec:
  ruleSelector:
    matchLabels:
      release: prometheus  ## <-- ここが重要

例えばRedis Exporter を targets に設定する ServiceMonitor 設定

redisAddress: redis://redis:6379

serviceMonitor:
  enabled: true
  multipleTarget: false
  targets: []
  additionalMetricsRelabels: {}
  additionalRelabeling: []

  namespace: monitoring
  labels:
    release: prometheus  ## <-- ここが一致していないと scrape_config として登録しない

Helm Chart

Prometheus Community

Exporter Charts

Grafana