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

Update prometheus.exporter.blackbox.md #2322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maxlemieux
Copy link
Contributor

Added an example of how to configure the instance label to work better with some prebuilt dashboards that expect the target url here.

PR Description

Which issue(s) this PR fixes

Followup on a support ticket

Notes to the Reviewer

This example is by request of an Alloy user and shows how to make the Blackbox exporter work better with dashboards like this one that expect instance label to contain target urls: https://grafana.com/grafana/dashboards/7587-prometheus-blackbox-exporter/

PR Checklist

  • Documentation added

Added an example of how to configure the `instance` label to work better with some prebuilt dashboards that expect the target url here.
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Jan 2, 2025
@@ -259,6 +259,37 @@ Replace the following:
[disc]: ../discovery.file/
[relabel]: ../discovery.relabel/

### Set instance label to target url

Some dashboards may expect the `instance` label on the Blackbox metrics to contain the value of the target url. Here's how to achieve that with Prometheus relabeling:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Some dashboards may expect the `instance` label on the Blackbox metrics to contain the value of the target url. Here's how to achieve that with Prometheus relabeling:
Some dashboards may expect the `instance` label on the Blackbox metrics to contain the value of the target URL.
The following example demonstrates how to achieve that with Prometheus relabeling:

Small tweak to the wording

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants