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
Prometheus set datastream name #5336
Conversation
df269e7
to
b84d00f
Compare
🌐 Coverage report
|
@@ -41,3 +41,7 @@ condition: ${kubernetes_leaderelection.leader} == true | |||
{{#if timeout}} | |||
{{timeout}} | |||
{{/if}} | |||
{{#if data_stream.dataset}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do not need this if
, in case of providing a default value
the same for other data_streams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, removed with fb2f0ef
@gizas could you provide more details on why we need this addition? |
@ChrsMark the agent indeed provides a default value of dataset per datastream. This PR adds the flexibility to the user to direct certain metrics to certain datastream (via the dataset naming). Especially for collector scenario, imagine that user can scrape two diffrent exporters and separate metrics would had been saved in the same |
Thanks @gizas ! That make sense as an advanced option. |
I would not say that Prometheus Package stands as an "input." solely. In our team we still promote remote_write and we underline that this Integration aims for the Prometheus Server scraping. But correctly this change is towards the input. We integrated here a "feature" of the input. FYI we tried to support an ask from the SREs of the MKI project to be able to change the dataset name. Additionally we have in our backlog the Prometheus Input story and we have made some discussions on what differences this should have comparing to this integration. But until the Prometheus Inout package is out there, we added this change here |
multi: false | ||
default: prometheus.collector | ||
required: true | ||
show_user: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gizas is it intentional to make this setting not a advanced option
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. What do you think?
I had changed my mind and thought it can be better like that. Dont have a strong opinion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about this setting more as an "advanced option" to not overwhelm the configuration view, but it is not a strong opinion as well
Package prometheus - 1.3.0 containing this change is available at https://epr.elastic.co/search?package=prometheus |
* Updating Prometheus Integration to support Datastream.daatset Name settting
* Updating Prometheus Integration to support Datastream.daatset Name settting
What does this PR do?
This PR adds the
data_stream.dataset
textbox for the Prometheus Integration package in UI, in order users to be able to change the dataset name for all the supported Prometheus configurations (Collector, PromQL, Remote_write)Tested with latest 8.6.2 version of ES
Checklist
changelog.yml
file.How to test this PR locally
cd /elastic/integrations/packages/prometheus
elastic-package build
elastic-package stack up -d -vvv --version=8.6.2
Related issues
Screenshots
Default Collector config:
Collector Configuration changed:
Collector with new dataset name:
PromQL Default:
Changed Promql dataset name:
Remote Write default:
Changing Default Configuration for remote_write: