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

Use case assistance for a newbie Prometheus Python #288

Open
maco1717 opened this issue Dec 5, 2020 · 0 comments
Open

Use case assistance for a newbie Prometheus Python #288

maco1717 opened this issue Dec 5, 2020 · 0 comments

Comments

@maco1717
Copy link

maco1717 commented Dec 5, 2020

Hi,

I am to get this working.

I have not previous experience with Grafana.

And no experience with Prometheus either.

I want to use Prometheus as a datasource (if possible) because from my research it will work better with my stack.

For starters I am just trying to add manually some static values on Prometheus that will then be passes to Grafrana to be and there I would like to see the data and then of course graph it.

I am trying to add this to Prometheus at this moment

http_requests_total{country_code="US"} = 1

I am using prometheus_client from Python

But I am not sure of what the script needs to to exactly to show that data on the server's endpoint.

But then once I got that data on the server endpoint how do I get Grafrana to show the data based on labels?

And is possible could someone advise on how do I do to parse the old logs BUT also update new entries added to the logs?

I am working with Nginx

I tried playing around with the following link and use it as a reference but I have desisted as it apered to be outdated and it wont work straight away also that uses influxDB which I would have then have to adapt to prometheus anyway.
https://medium.com/faun/total-nginx-monitoring-with-application-performance-and-a-bit-more-using-8fc6d731051b

Any advise would be appreciated.

Thanks,
\M

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