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

Job name mismatch #59

Open
mariusstaicu opened this issue May 21, 2020 · 0 comments
Open

Job name mismatch #59

mariusstaicu opened this issue May 21, 2020 · 0 comments

Comments

@mariusstaicu
Copy link

mariusstaicu commented May 21, 2020

There can be a mismatch between job name sent by statsd plugin and jobname in EMQ Dashboard template.

The jobname in grafana template is always emqx, however, the jobname in statsd is dynamically obtained:

[Name, Ip] = string:tokens(atom_to_list(node()), "@"),
Url = lists:concat([Uri, "/metrics/job/", Name, "/instance/",Name, "~", Ip]),

so if the broker hostname is different (eg. "emqtt") then the grafana template won't work.

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

1 participant