8000 add prometheus exporter template by infinite-turtles · Pull Request #338 · tinyproxy/tinyproxy · GitHub
[go: up one dir, main page]

Skip to content

add prometheus exporter template #338

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

infinite-turtles
Copy link

No description provided.

@rofl0r
Copy link
Contributor
rofl0r commented Dec 11, 2020

some description please...

@infinite-turtles
Copy link
Author

The template provides the stats in a machine readable format if you wanted to track connections with a monitoring system like prometheus, telegraf, or fluentd. From there, you could graph connections with grafana or the like.

@rofl0r
8000 Copy link
Contributor
rofl0r commented Dec 12, 2020

the file doesn't look like html. shouldnt it have a different extension? link to prometheus for interested parties pls.

@infinite-turtles
Copy link
Author

https://prometheus.io/docs/instrumenting/exporters/

The official node exporter for linux hosts uses text/plain, so it should be .txt or have no extension.

https://github.com/prometheus/node_exporter example:

> GET /metrics HTTP/1.1
> Host: localhost:9100
> User-Agent: curl/7.71.1
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8
< Date: Sat, 12 Dec 2020 15:57:58 GMT
< Transfer-Encoding: chunked

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

Successfully merging this pull request may close these issues.

2 participants
0