-
Notifications
You must be signed in to change notification settings - Fork 26
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
Put RUNDECK_URL into the label instance #34
Comments
@rdoering, the exporter already provides the label
|
@phsmith Thanks for your fast reply. This is not the case on my end :-)
The instance I encounter in prometheus is the container-name only, added by scrapping metrics. Would you say i should update my docker-image, updated 2 months ago? Or maybe my docker-compose-config is bad.
|
* docs: Update README.md * fix: Remove token requirement if user/pass options are used * fix: docker-compose.yml * fix: Issue #34 add node label in metrics
Oh man, sorry. My example shows I'm just published a new version that has a label named
I've decided to put |
Thanks for the fast response. I pulled the image and discovered that the label "node" holds the hostname of the host where the prometheus-exporter is running. This hostname is added as label "instance" by prometheus itself, if the label "instance" is not provided by the exporter. I am looking for the URL of the rundeck-instance, provided to exporter by env RUNDECK_URL. I would appreciate if we could set the label "instance" to the value of self.args.rundeck_url. If you want we could optionally suppress this label but I in my mind it is more likly that the metric consumer is more interested on the rundeck-url rather than the exporter-url. |
I you wish to, I could try to write it. But I guess I wouldn't that keen as you are :-). |
I see your point of view now and I agree with it. What do you think about that output:
|
That would be fine for me. I would configure my prometheus by using relabel_config to use the label "instance" as my connected tools like the alertmanager, grafana and team-client expecting the label "instance" to hold the hostname where the metrics are related to. As some metrics like "python_info" are more related to the host running the exporter, it would fine to set the label "instance" the exporter-host. But the most important metrics are related to the host RUNDECK_URL. I would suggest to set rundeck-host-related metrics to RUNDECK_URL and leave exporter-host-related metrics without the label "instance" as this set by prometheus by default. |
Great, that makes sense. |
That a good point. I would suggest to add an option to disable this feature. If it is disabled, no label will be given by the exporter and the behaviour is unchanged. Why optional off: Because the default behaviour is more related to the default what prometheus is expecting to get. And if you are using the docker-tag "lastest" you have expect breaking changes, which in the case could be managed per option also. |
Good! That's a good suggestion and could work flawlessly. |
@rdoering, reading more about the And about make the label optional, it's not a good practice to have that configurable through options. So, if you agree, I'll publish the code with the label |
Ah, I already configured |
Great! So, I've just published a new version with the Thanks for using the rundeck_exporter and providing feedback's about it. |
I pulled the new image and the new label is shown as expected. Than I configured the scraper by
And it works like a charm. I thank you a lot. |
* fix: Issue #34, added `instance_address` label in metrics * fix: Issue #40, negative job_execution_duration value * ISSUE-42 avoid duplicating metric definitions (#43) Co-authored-by: Wilson Britten <wbritten@sofi.org> * docs: Update README.md Co-authored-by: WilsonSunBritten <wilsunb@gmail.com> Co-authored-by: Wilson Britten <wbritten@sofi.org>
* fix: Issue #34, added `instance_address` label in metrics * fix: Issue #40, negative job_execution_duration value * ISSUE-42 avoid duplicating metric definitions (#43) Co-authored-by: Wilson Britten <wbritten@sofi.org> * docs: Update README.md * fix: Issue #42 Further fix duplicates (#46) * ISSUE-42 avoid duplicating metric definitions * Fix duplicate entry of project fields * Further fix duplicates * feat: Change classes for namedtuple Co-authored-by: Wilson Britten <wbritten@sofi.org> Co-authored-by: Phillipe Chaves <phsmithcc@gmail.com> Co-authored-by: WilsonSunBritten <wilsunb@gmail.com> Co-authored-by: Wilson Britten <wbritten@sofi.org>
use instance_address variable in grafana dashboard instead of instance, as changed in #34
We are using multiple rundeck instances and it would be nice to distinguish between this per instance-label. Therefore it would be greate put the env RUNDECK_URL into the instance-label.
The text was updated successfully, but these errors were encountered: