akoutmos / prom_ex

An Elixir Prometheus metrics collection library built on top of Telemetry with accompanying Grafana dashboards
MIT License
577 stars 96 forks source link

makes the dashboard title configurable. #226

Open fbettag opened 7 months ago

fbettag commented 7 months ago

Change description

This adds the configuration variable titleto dashboard_assigns, making it possible to use a different name for the dashboard, other than MyProject.

What problem does this solve?

I have multiple versions of the same codebase running, thus in my Grafana the Dashboards get overriden since they all have the same otp_name.

Example usage

  def dashboard_assigns do
    [
      datasource_id: PetalPro.config(:prometheus_datasource_id),
      default_selected_interval: "30s",
      title: "ainomaly.io"
    ]
  end