Skip to content

metrics exporter lose monitored ClickHouse instances list and stop publish metrics, after restart metrics-exporter container inside clickhouse-operator pod #239

@Slach

Description

@Slach

Steps to reproduce

  • install clickhouse-operator
  • install any kind: ClickhouseInstallation from chi-examples
  • reboot metrics-exporter via
kubectl exec -n $( kubectl get pods --all-namespaces | grep clickhouse-operator | awk '{print $1 " " $2}') -c metrics-exporter reboot
  • run port-forward to metrics exporter 8888
kubectl -n $( kubectl get svc --all-namespaces | grep clickhouse-operator-metrics | awk '{print $1}') port-forward service/clickhouse-operator-metrics 8888

Expected results

json array with current running clickhouse instances

Actual results

empty json

This state also happens in following situations:

  • OOP Kill clickhouse-operator/metrics-exporter container
  • reschedule clickhouse-operator/metrics-exporter
  • whole restart kubernetes node / cluster

Solution proposal

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfix proposedFix/solution is proposed for the issue being discussed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions