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

Grafana panel doesn't show the instance addresses in SSL Probes: Instance whose certificate is about to expire #14

Closed
nobuto-m opened this issue Dec 14, 2023 · 0 comments · Fixed by #21

Comments

@nobuto-m
Copy link

Bug Description

image

The bottom panel Expired in less than X days doesn't show the instance addresses like URL but only shows the identical juju_model_uuid + juju_application for multiple items.

probe_ssl_earliest_cert_expiry{juju_application=~"$juju_application",juju_model=~"$juju_model",juju_model_uuid=~"$juju_model_uuid",juju_unit=~"$juju_unit",probe_target=~"$probe_target"} - time() < (3600 * 24 * 30)

To Reproduce

$ juju deploy blackbox-exporter-k8s blackbox-exporter --channel latest/edge

$ juju config blackbox-exporter probes_file="
scrape_configs:
  - job_name: 'blackbox_k8s_endpoints'
    metrics_path: /probe
    params:
      module: [http_2xx]
    static_configs:
      - targets:
        - http://ubuntu.com
        - https://ubuntu.com
        - https://releases.ubuntu.com
"

$ juju relate prometheus:metrics-endpoint blackbox-exporter:self-metrics-endpoint
$ juju relate grafana:grafana-dashboard blackbox-exporter:grafana-dashboard

Then open Grafana, and change the query to < (3600 * 24 * 90) to fill the panel just for testing.

Environment

blackbox-exporter-k8s latest/edge 3

Relevant log output

N/A

Additional context

image

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

Successfully merging a pull request may close this issue.

1 participant