-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
None
-
False
-
None
-
False
-
-
Add metrics to our own netobserv must gather
Also investigate about documenting how to use netobserv generated metrics to help customer cases debug the cluster
—
Collect netobserv_ metrics
$ oc adm must-gather -- gather_metrics --min-time=$(date --date='2 hours ago' +%s%3N) --match="{__name__=~\'netobserv_.*\'}"
Download prometheus from https://prometheus.io/download/ to get both promtool & prometheus server
Convert metrics to prom_data using promtool
$ promtool tsdb create-blocks-from openmetrics ./must-gather.local.4581356154815929587/quay-io-openshift-release-dev-ocp-v4-0-art-dev-sha256-083682ad8b215e737049e9561c9d61e670cb3b8979a64fbc1b5298b588a5596f/monitoring/metrics/metrics.openmetrics prom_data/
Run a local prometheus instance using generated data to query the metrics
$ ./prometheus --storage.tsdb.path="prom_data/"
- is related to
-
NETOBSERV-1911 CLI metrics
- Code Review
- links to