graphite

Replace image and javascript absolute paths through proxy_redirect in nginx

≯℡__Kan透↙ 提交于 2019-12-21 23:26:29
问题 I have a scenario as follows. Nginx is being used as a reverse proxy to a apache server listening at port 8080. nginx is running at port 80. There is a wsgi application which is being run by the apache server. Now, I have added a proxy_pass to the nginx configuration such that whatever requests come to localhost/ (nginx port is the default port 80) they get redirected to localhost:8080. Here is an excerpt from the nginx conf file: server { listen 80; proxy_set_header X-Real-IP $remote_addr;

Offset graphite metrics by the lowest value in current time range

最后都变了- 提交于 2019-12-12 17:13:35
问题 I have Grafana with Graphite metrics. I have a graph showing the EnqueueCount of some specific queue in ActiveMQ. The problem is that the EnqueueCount shows all values since the queue was created, so when I narrow down the time range in Grafana to "today so far", the graph looks like this: I would like it to show only values for current period - I would like the graph to always start at 0. In this case I would like to offset it by -2. There is an offset function, however it is only by

Sending Data from ganglia to graphite

*爱你&永不变心* 提交于 2019-12-12 08:51:26
问题 I am currently collecting monitoring metrics with Ganglia and I would like to show graphs with that data with Graphite. I know such an integration is possible, and I found an article describing how it should be done. I am not quite sure exactly how this integration works, especially when I want to send it straight into graphite without parsing the data of the gmetad. Any help on how to integrate Ganglia with Graphite will be great. thanks 回答1: There are two approaches to integrate ganglia

how do you point graphite to memcache

我只是一个虾纸丫 提交于 2019-12-12 05:37:00
问题 I have a graphite instance that I would like to use memcache server to read from cache. I have done these: Installed memcached on 192.168.101.1 Installed graphite and python-memcached on server 192.168.101.2 I verified that graphite web-app works using opentsdb as backend storage. This is my local_settings.py looks like: SECRET_KEY = 'pass123' TIME_ZONE = 'America/New_York' DEBUG = True MEMCACHE_HOSTS = ['192.168.101.2:11211'] DATABASES = { 'default': { 'NAME': '/opt/graphite/storage/graphite

mod_wsgi (pid=2179): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module

若如初见. 提交于 2019-12-12 03:24:40
问题 I am working on AWS RHEL server. Getting this error each time I access the webpage(Webpage showing 500). Error.log: [Sat Jul 09 02:51:12.736533 2016] [:error] [pid 2179] mod_wsgi (pid=2179): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module. [Sat Jul 09 02:51:12.736572 2016] [:error] [pid 2179] mod_wsgi (pid=2179): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi. [Sat Jul 09 02:51:12.736593 2016] [:error] [pid 2179] Traceback

Run manage.py migrate but no accout related tables created in graphite.db

无人久伴 提交于 2019-12-12 02:33:01
问题 I'm installing graphite 0.9.15 on Ubuntu Server 16.04 LTS. During configuration step cd /opt/graphite/webapp/graphite sudo cp local_settings.py.example local_settings.py Then using the command in the official installation instruction: sudo PYTHONPATH=/opt/graphite/webapp/ python manage.py migrate --settings=local_settings Gave information Operations to perform: Apply all migrations: (none) Running migrations: No migrations to apply. Then I went to check the graphite.db sqlite3 graphite.db

Can Graphite (whisper) metrics be aliased?

。_饼干妹妹 提交于 2019-12-12 01:46:53
问题 There is a function named alias, that I tried as given below http://myhost:80/render?target=alias(my.src.metrics.endTime,"my.target.metrics.success_endTime") But I want to create my.target.metrics.success_endTime persistent in the graphite for my.src.metrics.endTime . so that new values under the my.src... are also available via my.target... . 回答1: However, you can't configure persistent aliases in graphite's UI (webapp), you may create symbolic link on the filesystem, that will behave like

Graphite: time per point precision

旧街凉风 提交于 2019-12-12 01:12:31
问题 Is it possibile to store time per point with millisecond precision? Since Graphite is based on Whisper I've took a look at whisper.py file. It contains: UnitMultipliers = { 's' : 1, 'm' : 60, 'h' : 60 * 60, 'd' : 60 * 60 * 24, 'y' : 60 * 60 * 24 * 365, } so it seems that it's possibile to record events with a maximum precision of 1s. How can I cope with a system that produces an event every 10ms? 回答1: You can send the data to the carbon-aggregator daemon or Statsd. These are both aggregators,

Dropwizard Yaml for graphite server configuration

社会主义新天地 提交于 2019-12-11 13:07:55
问题 I am using metrics with dropwizard and I am reporting these to the graphite server. Almost the same way described in the tutorial. https://dropwizard.github.io/metrics/3.1.0/manual/graphite/#manual-graphite But I wanted to configure the graphite properties in the dropwizard yaml file. Something like the following metrics: reporters: - type: graphite host: graphite_server port: 2003 prefix: some_example_metrics How do I then configure this in my dropwizard configuration class in order to use

How can I create an SLA chart in Grafana?

痴心易碎 提交于 2019-12-11 13:06:37
问题 I have a seriesMetric , and a constantLine (the goal/SLA). I want to be able to "count" the occurances below the line, and divide by the total to get a % within SLA. I know how to do the 2nd part, using asPercent , but I can't figure out how to count the occurrences below the line in Grafana. There's no countif function. I tried currentBelow and averageBelow , but then nothing appeared on my chart (the two lines disappeared). I assume I did something wrong. I think this is a pretty common use