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

Queries regarding saving the data #105

Open
abhay40711cs opened this issue Aug 19, 2017 · 12 comments
Open

Queries regarding saving the data #105

abhay40711cs opened this issue Aug 19, 2017 · 12 comments

Comments

@abhay40711cs
Copy link

I need to save the data and to show in Grafana.
Is there any plugin which can transfer data to promethesus?

@mattcolegate
Copy link
Member

Hi @abhay40711cs , I don't know about Promethesus but appmetrics (which appmetrics-dash uses under the covers to gather data) can be run in File Collection Mode which will store data to an *.hcd archive format. On the other hand, as you mention Grafana, you might want to take a look at appmetrics-elk which can send data to an ElasticSearch instance which can be used with Grafana.

@abhay40711cs
Copy link
Author

Thanks @mattcolegate : Would you suggest how to run appmetrics dash in file collection mode, and can this data (.hcd) format is able to be imported to Grafana ? Then sole purpose will be fulfilled.

I tried the appmetrics-elk but it seems to be obsolete with the Kibana and existing node.js versions.
RuntimeTools/appmetrics-elk#25 (comment)

@seabaylea
Copy link
Member

@abhay40711cs we're actually going to be supporting a Prometheus endpoint very shortly. Do you have any specific data that you'd like access to? (so that we can prioritise what to expose first)?

@abhay40711cs
Copy link
Author

@seabaylea : Thanks for giving a thought for this.
no of HTTP request, Error Rate vs Routed URI Address and Throughput.

apart from this any thought for upgrading appmetricks-elk ?

@seabaylea
Copy link
Member

Currently we're looking at providing the following for HTTP:

# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
# TYPE http_request_duration_microseconds summary 
# HELP http_requests_total Total number of HTTP requests made.
# TYPE http_requests_total counter

each of which would be broken down with per-route data. You should then be able to generate rate/throughput queries in Prometheus.

For error rate, would a single count for any request that doesn't result in 200-OK make sense, or would you need counts of 3xx vs. 4xx etc.?

@abhay40711cs
Copy link
Author

abhay40711cs commented Aug 21, 2017 via email

@abhay40711cs
Copy link
Author

abhay40711cs commented Aug 25, 2017 via email

@seabaylea
Copy link
Member

Hi @abhay40711cs. I can tell you that work is underway - I've got a very early WIP here:
https://github.com/seabaylea/appmetrics-prometheus

Note that we still haven't decided/determined whether we should add support into appmetrics-dash, or make it a separate module.

@tobespc
Copy link
Member

tobespc commented Sep 3, 2017

I'm leaning more and more towards have this as a separate module rather than part of appmetrics-dash

@tobespc
Copy link
Member

tobespc commented Sep 5, 2017

@abhay40711cs We have released an early driver of our prometheus adaptor to github this morning

https://github.com/RuntimeTools/appmetrics-prometheus

@abhay40711cs
Copy link
Author

abhay40711cs commented Sep 5, 2017 via email

@seabaylea
Copy link
Member

Hi @abhay40711cs . Can you raise an issue in the appmetrics-prometheus project to make the endpoint configurable?

If you have any suggestions on how you'd like to configure it, that would also be useful (its also fine if you don't mind how its done!)

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

4 participants