Skip to content

Bug: Grafana dashboard issue - deployment name from concourse is missing #2124

Closed

Description

@sattan66

Hi ,

#BugReport

I am using Prometheus bosh release to monitor concourse. I have followed the below links to setup the monitoring.

https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/monitor-concourse.yml

https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/concourse/enable-prometheus-metrics.yml

I am able to get the metrics in prometheus (Graph and console), but the Grafana dashboards are not showing any metrics. while digging into it, I see the deployment name is not exposed on port 9391.

The following can also be handy:

  • Concourse version: 3.9.1
  • Deployment type (BOSH/Docker/binary): BOSH
  • Infrastructure/IaaS: vmware
  • Browser (if applicable): any browser
  • Did this used to work?- no

image

in the attached image, the first query is not working, whereas second query without deployment name is able to plot the graph.

Activity

  1. vito commented on Apr 3, 2018

    @vito
    Contributor

    @jmcarp @TimSimmons Is this because the Prometheus emitter ignores --metrics-attribute flag? These values get added on to the attributes for all events emitted, but the Prometheus emitter selects particular attributes for emitting.

  2. TimSimmons commented on Apr 3, 2018

    @TimSimmons

    It is! It's generally an anti-pattern to add labels to all Prometheus metrics. We could however add a concourse_build_info metric, similar to what is described here:
    https://www.robustperception.io/exposing-the-software-version-to-prometheus/
    also of note:
    https://www.robustperception.io/how-to-have-labels-for-machine-roles/

    So we would expose a metric that looked like:
    concourse_build_info{version="3.9.1"....} for any of those metric attributes specified, and then you could query using them (albeit in a roundabout way).

  3. vito commented on Apr 3, 2018

    @vito
    Contributor

    @TimSimmons Thanks for the context! :)

    @sattan66 Would that suggestion work for you?

  4. Alexvianet commented on Apr 11, 2018

    @Alexvianet

    Any updates same issue with corrupted concourse dashboards.

  5. xtremerui commented on Nov 22, 2023

    @xtremerui
    Contributor

    closing stale issue.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions