cloudfoundry / prometheus-boshrelease

bosh release for prometheus ecosystem
Apache License 2.0
114 stars 164 forks source link

No data points from cf-exporter in Prometheus 25.0.0 #340

Closed san4ever closed 1 year ago

san4ever commented 5 years ago

We have upgraded our PAS from 2.4 to 2.6 . We have update bosh proemetheus from 24.1.0 to 25.0.0 . We are not getting metrics for cloudfoundry latency metrics. Could you help us in fixing this. Let us know any information needed

roberto-yslas commented 5 years ago

I had this problem as well. I found some documentation that indicated that you need to assign your cf- deployment name as the value for metron_deployment_name in your deployment. In our case we had to add scrape config for the cf_exporter since our foundation wasn't responding very fast.

  scrape_interval: 2m
  scrape_timeout: 1m

I will say this is very strange because I have several implementations of prometheus and the two I have running on 25 - on one I didn't have to make these changes. On the other I did.

shanmuksandeep commented 5 years ago

Hey @roberto-yslas Can you help me where can i get name for metron_deployment_name

shanmuksandeep commented 5 years ago

Hi @roberto-yslas Here is snipped for firehose_exporter and cf_exporter job . Let us know for any changes i have modify in these jobs image image

roberto-yslas commented 5 years ago

snip from the monitor-cf.yml operator file:

for the interpolated variable metron_deployment_name you should put your cf-(guid) of your CF deployment in your foundation.

bosh -e (your-foundation-env) deployments | grep cf

HTH, Rob

roberto-yslas commented 5 years ago

e.g.

[bldbxops@peplap03496 prometheus25]$ bosh -e dev-director deployments | grep cf

cf-a66dec9161eca2c38d11 backup-and-restore-sdk/1.12.0 bosh-azure-hyperv-ubuntu-xenial-go_agent/250.99 - latest cf-autoscaling/219

metron_deployment_name=cf-a66dec9161eca2c38d11

san4ever commented 5 years ago

Hi @roberto-yslas We even tried to give complete cf deployment name. But data is not populating image

san4ever commented 5 years ago

Hi @roberto-yslas Could you give insights on this. Tried changing metron name with cf deployment didn;t solve the issue yet Also can you please review this below issue, in case you faced in your foundation https://github.com/bosh-prometheus/prometheus-boshrelease/issues/359

roberto-yslas commented 5 years ago

It is not the deployment_name that you need to modify; that is only a label. It is the metron_deployment_name that you need to set to your cf deployment.

san4ever commented 5 years ago

Hi @roberto-yslas Yes Instead of metron_deployment_name --> We gave cf-deployment name. Also have attached the snippet in above comment. Could you also suggest other option so that i will tweak into

roberto-yslas commented 5 years ago

That's what worked for me - don't know why it's not working for you.

san4ever commented 5 years ago

Can you also confirm your PAS and Prometheus version please

On Thu, 28 Nov, 2019, 10:42 AM roberto-yslas, notifications@github.com wrote:

That's what worked for me - don't know why it's not working for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bosh-prometheus/prometheus-boshrelease/issues/340?email_source=notifications&email_token=AHA6E4QNO4NHZPZELXDSLKLQV5HLNA5CNFSM4I363ITKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFLOW2Y#issuecomment-559344491, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHA6E4RVNZV4VGU2PDYQAULQV5HLNANCNFSM4I363ITA .

benjaminguttmann-avtq commented 4 years ago

@san4ever does the issue still persist?

benjaminguttmann-avtq commented 1 year ago

Closed due to inactivity; Please feel free to re-open if issue still persists