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

Collector or Exporter outputs fluctuating data #23

Closed
harneksidhu opened this issue Jun 25, 2016 · 1 comment
Closed

Collector or Exporter outputs fluctuating data #23

harneksidhu opened this issue Jun 25, 2016 · 1 comment

Comments

@harneksidhu
Copy link

I am using client_ruby in a rails application with the following config.ru file:

# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)

# gzip compression
use Rack::Deflater

# metrics
require 'prometheus/client/rack/collector'
require 'prometheus/client/rack/exporter'

use Prometheus::Client::Rack::Collector
use Prometheus::Client::Rack::Exporter

run Storybook::Application

When analyzing counters such as http_requests_total or http_request_duration_total_seconds, I noticed that the values will fluctuate back and forth every few seconds. I confirmed this by constantly refreshing my application.com/metrics page and observing the values. My grafana dashboard caught this instantly.

image

http_requests_total exhibits similar behaviour.

image

Are these fluctuations expected behaviour?

@grobie
Copy link
Member

grobie commented Aug 8, 2016

@harneksidhu I assume your rack application uses multiple processes? In that case read #9 for more information.

@grobie grobie closed this as completed Aug 8, 2016
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

2 participants