You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
First off, thank you for providing this very useful tool! :)
Describe the bug
It seems that any additional_label defined inside an EXTERNAL probe only applies to the build-in metrics (success, total and latency). Any custom metrics returned by the external probe does not have these labels set.
Cloudprober Version
Tested both v0.11.2 and latest master (as of today: 2021-08-25)
To Reproduce
I have an external probe which calls Azure API and returns additional data about the remaining API rate limits (which are send by Azure in the HTTP Header). For example Microsoft_Compute_LowCostGet30Min.
These custom metrics are exposed and scraped successfully, but the labels are missing. My probe configuration looks like this:
## These are fine:#TYPE cloudprober_success counter
cloudprober_success{ptype="external",probe="azure_vms",dst="TARGETNAME",rgname=RGNAME,os="linux"} 21629904383080#TYPE cloudprober_total counter
cloudprober_total{ptype="external",probe="azure_vms",dst="TARGETNAME",rgname=RGNAME,os="linux"} 21629904383080#TYPE cloudprober_latency counter
cloudprober_latency{ptype="external",probe="azure_vms",dst="TARGETNAME",rgname=RGNAME,os="linux"} 896401.0421629904383080## This is missing the `rgname` and `os` labels:#TYPE cloudprober_ratelimit_Microsoft_Compute_LowCostGet30Min gauge
cloudprober_ratelimit_Microsoft_Compute_LowCostGet30Min{ptype="external",probe="azure_vms",dst="TARGETNAME"} 31779.0001629904383080
The text was updated successfully, but these errors were encountered:
First off, thank you for providing this very useful tool! :)
Describe the bug
It seems that any
additional_label
defined inside anEXTERNAL
probe only applies to the build-in metrics (success
,total
andlatency
). Any custom metrics returned by the external probe does not have these labels set.Cloudprober Version
Tested both
v0.11.2
and latestmaster
(as of today:2021-08-25
)To Reproduce
I have an external probe which calls Azure API and returns additional data about the remaining API rate limits (which are send by Azure in the HTTP Header). For example
Microsoft_Compute_LowCostGet30Min
.These custom metrics are exposed and scraped successfully, but the labels are missing. My probe configuration looks like this:
Example output:
The text was updated successfully, but these errors were encountered: