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

AlertManager plugin failed TypeError: Cannot read property 'toLowerCase' of undefined #50

Closed
dudubis opened this issue Jan 28, 2019 · 2 comments

Comments

@dudubis
Copy link

dudubis commented Jan 28, 2019

I have configured Alertmanager data source in K8s ConfigMap:

data:
  datasource.yaml: |-
    apiVersion: 1
    datasources:
    - name: AlertManager
      type: camptocamp-prometheus-alertmanager-datasource
      url: http://{{ template "prometheus-operator.fullname" . }}-alertmanager:9093/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }}
      access: proxy     

It does load fine and I see the data source in the Grafana UI.
When I go to the dashboard nothing loads and get the following error:

AlertManager plugin failed TypeError: Cannot read property 'toLowerCase' of undefined

If I configure the data source manually via the Kibana UI and make the dashboard point to it everything loads fine and I'm able to see all stats in the dashboard.

What am I missing the in the ConfigMap to make it work?

@cryptobioz
Copy link
Member

This is a known issue that should be fixed in the latest release.
The field jsonData is missing in your template. Please, have a look at the issue #41.

@dudubis
Copy link
Author

dudubis commented Jan 29, 2019

This is a known issue that should be fixed in the latest release.
The field jsonData is missing in your template. Please, have a look at the issue #41.

Thanks! solved the issue for me. Closing.

@dudubis dudubis closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants