-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify behaviour of prometheus grafana functionality with old and new metrics endpoint #5501
Comments
It uses 3 flags (job-name, node-addrs, seed-addrs) to generate a yaml scrape_config that looks like: - job_name: redpanda-metrics-test
static_configs:
- targets:
- localhost:9644 |
By reading the original slack thread it seems that we wanted to change the endpoint in |
I don't really know how the scrape config works, but I guess it needs to output something like: - job_name: redpanda-node
static_configs:
- targets:
- localhost:9644
metrics_path: /metrics
- job_name: redpanda-node-public
static_configs:
- targets:
- localhost:9644
metrics_path: /public_metrics I think @VladLazar had a play with the scrape config on a test cluster. |
It might be useful, for customers with multiple clusters, to be able to take another argument that can attach a label: rpk generate prometheus-config --seed-addr localhost:9092 --job-name redpanda-node --add-label cluster-id:cluster-a To get - job_name: redpanda-node
static_configs:
- targets:
- localhost:9644
labels:
- cluster-id: cluster-a
metrics_path: /metrics
- job_name: redpanda-node-public
static_configs:
- targets:
- localhost:9644
labels:
- cluster-id: cluster-a
metrics_path: /public_metrics |
I managed to set this up in k8s env, but you don't edit the scrape config directly for that. |
To summarize (give me a 👍 if it's correct), 2 changes required for
CC: @VladLazar @BenPope |
Sounds reasonable to me, I think people will also want to be able to scrape both, but they can concat the results of two calls, I guess. It'll simplify the way we document stuff and over time, deprecate the old metrics endpoint. Alternatively we could have flags |
With the recent changes to metrics in 22.2, we have two metrics endpoints:
/metrics
- "old" metrics endpoint, mostly unchanged but now has aggregated metrics which decreases the total number of metrics. Should be backwards compatible./public_metrics
- "new" metrics endpoint, fewer metrics, better documented, but not complete yet for a monitoring solution. We'll be adding new metrics in the future releases.For further info, see the PRD, the RFC for cardinality reduction and for the new endpoint.
In terms of
rpk generate prometheus-config
andrpk generate grafana-dashboard
, we should:The text was updated successfully, but these errors were encountered: