hawkular / hawkular-grafana-datasource

Hawkular Datasource for Grafana
Apache License 2.0
22 stars 35 forks source link

Readme: new troubleshootings section #44

Closed jotak closed 7 years ago

jotak commented 7 years ago

@pilhuhn @tsegismont can you have a look? Any idea of other points to add?

You can see it there: https://github.com/jotak/hawkular-grafana-datasource/tree/troubleshooting#troubleshooting

tsegismont commented 7 years ago

Maybe @mwringe knows where you could point users to. If we don't know how to upgrade Origin Metrics then we should not suggest to do it.

2016-12-09 11:03 GMT+01:00 Joel Takvorian notifications@github.com:

@jotak commented on this pull request.

In README.md https://github.com/hawkular/hawkular-grafana-datasource/pull/44:

+ +### Grafana fails to establish a connection or get data from hawkular + + Check the URL: [host]/hawkular/metrics. Make sure there's no ending slash. When you open up this URL in a browser you should see the Hawkular logo, the installed version and a mention that the service is started. + + Make sure any credential / token matches your installation. In general, if you installed a standalone hawkular-metrics server without any specific configuration you probably don't have any authentication information to provide. If you installed hawkular-services using its installation guide you will probably have to fill-in the basic auth fields. If you are using Hawkular from OpenShift, you have to provide a Bearer token in the Token field. Tokens can be generated temporarily (got to [OpenShift host]/oauth/token/request) or from a Service account in OpenShift. + +* Check your browser's javascript debugging tool. If you see an error mentioning issues with CORS, switch to proxy mode in the datasource configuration. + +### I can't query by tag, the option is not displayed + +Querying by tag was introduced before the plugin was properly versioned, so if you have a version >= 1.0.2 you should have it. However it is only enabled when it talks to hawkular-metrics >=0.20.0. To check your version of hawkular-metrics just open its status page in a browser ([host]/hawkular/metrics or [host]/hawkular/metrics/status). + +### I'm running Hawkular in OpenShift, connection is OK but I can't query any metric + +Check your version of hawkular-metrics ([host]/hawkular/metrics or [host]/hawkular/metrics/status). Prior to 0.16.0, metric names containing slashes, like in OpenShift, were unfortunately not showing up in Grafana; you could consider upgrading hawkular-metrics.

Well, actually I'm not sure how to upgrade metrics in openshift... especially if it's enterprise with already enabled metrics

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hawkular/hawkular-grafana-datasource/pull/44, or mute the thread https://github.com/notifications/unsubscribe-auth/ABblttlEYfRKr_7vLZRL-zG6Q5v4tcEfks5rGSd9gaJpZM4LIvhY .

pilhuhn commented 7 years ago

You also should mention that the tenant is case sensitive. Hawkular != hawkular

jotak commented 7 years ago

Updated with your remarks

mwringe commented 7 years ago

Updating Hawkular Metrics is described in the OpenShift documentation (https://docs.openshift.org/latest/install_config/upgrading/manual_upgrades.html#manual-upgrading-cluster-metrics)

jotak commented 7 years ago

Thanks @mwringe , I'll update with that link