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

Monitoring Custom Metrics with Grafana #31

Open
osterman opened this issue May 10, 2018 · 3 comments
Open

Monitoring Custom Metrics with Grafana #31

osterman opened this issue May 10, 2018 · 3 comments

Comments

@osterman
Copy link
Member

what

  • Ability to view metrics/graphs/reports
  • How do we add custom metrics to graphs?

See #20 (requested by @Nuru)

@osterman
Copy link
Member Author

@Nuru can you help me scope this question?

Are you asking about custom application metrics or metrics already available, but not exposed through any dashboard.

If we're talking about custom application metrics (e.g. open comments), that's a much larger discussion as we need to go into how to expose metrics for each app and then harvest them with Prometheus.

It would help if you give some example metrics off the top of your head so that we can address it appropriately.

@Nuru
Copy link
Sponsor Contributor

Nuru commented May 10, 2018

@osterman I'm not asking how to generate metrics inside an app, I'm expecting that is generically documented somewhere. I'm asking how do we connect custom metrics we are generating to Prometheus and then Grafana.

For example, let's say we wanted to track the number of new user signups per day. Please point me to generic documentation that describes Prometheus' requirements for an endpoint that provides that data and then how (with URLs and/or file names) to connect that endpoint to Prometheus and then add that widget to the Grafana dashboard.

I'm only asking for the PopChest specific data that needs to be merged with generic documentation to accomplish the task. The answer could be as simple as

  • Add the REST endpoint for a Prometheus data source meeting the requirements described at <public generic Prometheus documentation URL> to the Prometheus agent via the <menu item name> at the <control panel URL for staging> and/or <control panel URL for production>. Give it a name using <this field>.
  • Create a Grafana widget via <menu item> at <URL> and reference the name you gave the data source in the previous step.

@osterman
Copy link
Member Author

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

No branches or pull requests

3 participants