Giter VIP home page Giter VIP logo

Comments (7)

martin-helmich avatar martin-helmich commented on August 18, 2024

Please post in English.

from prometheus-nginxlog-exporter.

fujianan avatar fujianan commented on August 18, 2024

Can you provide the json file of this nginx exporter performance in grafana ,Thank you !
My English is not Good!

from prometheus-nginxlog-exporter.

martin-helmich avatar martin-helmich commented on August 18, 2024

My English is not Good!

...but still better than my Chinese. :)

I'm not entirely sure which Grafana dashboard you're referring to; are you referring to the one shown in my blog article on this exporter? I don't have the JSON for that dashboard at hand right now, because it's running in a private network. But at least you can find the PromQL queries for getting the raw data out of Prometheus in that article:

The diagrams in the screenshot above were generated from the following Prometheus queries:

  • Average response time: sum(rate(app_http_response_time_seconds_sum[5m])) by (instance) / sum(rate(app_http_response_time_seconds_count[5m])) by (instance)
  • Requests per second: sum(rate(app_http_response_time_seconds_count[1m])) by (instance)
  • Response time (90% quantile): app_http_response_time_seconds{quantile="0.9",method="GET",status="200"}
  • HTTP traffic: sum(rate(app_http_response_size_bytes[5m])) by (instance)
  • Status codes per second: sum(rate(app_http_response_count_total[1m])) by (status)

Let me know if that helps.

from prometheus-nginxlog-exporter.

fujianan avatar fujianan commented on August 18, 2024

Thanks for your answer !
I have read your blog and did them but I can't get the values
I use the same configuration as yours

from prometheus-nginxlog-exporter.

fujianan avatar fujianan commented on August 18, 2024

11

this is the metrics of nginx exporter picture

And I created a graph in grafana to show the data ,But it didn't work !
like this picture
22

Then I wanted to show the data:
sum(rate(app_http_response_time_seconds_sum[5m])) by (instance) / sum(rate(app_http_response_time_seconds_count[5m])) by (instance)

But there was no data like this
33

I guess maybe the the grammar of query is not correct or can't match
Can you help me ?
And now the place where you live maybe is night, I am sorry to bother you !
and if you can find the json file, can you provide it for me?

from prometheus-nginxlog-exporter.

martin-helmich avatar martin-helmich commented on August 18, 2024

Could you share your confiuration file (if you're using one) and the command-line flags you're starting the exporter with?

Keep in mind that the metrics are not necessarily named app_* like in my examples, but might be named differently depending on configuration (something that was already requested to be changed in #13).

from prometheus-nginxlog-exporter.

martin-helmich avatar martin-helmich commented on August 18, 2024

Closing for now. I've added a FAQ section to the README that contains some common issues and their causes that you might want to check. Feel free to re-open this issue, should your problem persist.

from prometheus-nginxlog-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.