Skip to content
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

Can I add custom labels to metrics collection? #298

Open
10000-ki opened this issue Aug 28, 2024 · 1 comment
Open

Can I add custom labels to metrics collection? #298

10000-ki opened this issue Aug 28, 2024 · 1 comment

Comments

@10000-ki
Copy link

Depending on the user-defined Grafana dashboard, various filtering may be necessary.

It would be ideal to have a structure where custom labels can be appropriately registered as needed.

For example, it would be ideal if labels could be registered in a key-value format like the following

- job_name: opensearch
  scrape_interval: 10s
  metrics_path: "/_prometheus/metrics"
  static_configs:
  - labels:
    - env: prod
    - key2: value2
    - key3: value3
    - ...

catalog.registerNodeGauge("indices_doc_number", "Total number of documents");

@10000-ki
Copy link
Author

@lukas-vlcek hi! Could you please consider this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant