criteo / graphite-remote-adapter

Fully featured graphite remote adapter for Prometheus
Apache License 2.0
38 stars 25 forks source link

Configuration question #70

Closed lukipro closed 3 years ago

lukipro commented 4 years ago

Hi guys,

I am having troubles configuring the remote storage adapter. Or perhaps I am just missing something obvious.

To give an example I picked a random metric: alertmanager_http_response_size_bytes_bucket If I execute this query in Prometheus I get 96 results:

Screen Shot 2020-02-14 at 15 14 41

However in Graphite there are only two results being stored:

Screen Shot 2020-02-14 at 15 16 04

What may be the reason for this? I do not see any errors in the remote-storage-adaptor logs nor does Prometheus report any issues with remote writes.

Appreciate your help!

geobeau commented 4 years ago

Hello, sorry for the delay.

I don't see any obvious issues. It could come from the parsing of the le label or some kind of collision of multiple Prometheus metrics resulting in the same Graphite path.

On the admin UI of your Graphite Remote Adapter you should see a simulation tab: you can write the prometheus metrics that you have and then check the Graphite path to see if it's what you expect.

If it doesn't help you solve this issue, share here your current configuration and the set of prometheus metrics so we can try to reproduce the issue

melchiormoulin commented 4 years ago

Hello can you provide your prometheus and graphite remote adapter configuration ?

lukipro commented 4 years ago

Hello,

Thanks for your feedback. Turned out that I just had to wait for quite a while in order for those metrics to appear in Graphite. My Prometheus scrapes about 200 000 metrics. Storage schema configuration is following: 10s:6h,1m:6d,10m:1800d. Every metric requires about 3 MB, so Graphite had to create over 600 GB of data. I am not sure if it is correct or not but it took more than two days.

image

On this graph you may see that until about 18:00 on 2/17 metrics were created all the time. Afterwards it was way less frequent.

Here are my configs:

I will appreciate your comments on this configuration.

geobeau commented 4 years ago

The remote adapter config looks similar to what we currently use. For Prometheus, it depends on your workload and if Graphite is able to handle the throughput.

The graphite metric creation rate seems quite low but I'm not used to vanilla, we use a customised version at Criteo.

hdost commented 3 years ago

Seems to have answered the question.