Open Giri0422 opened 1 year ago
it actually supports all metrics which you can also get via the Azure Portal (it's just a client for the Monitor API, nothing more).
What error do you get or do you just get nothing?
Which version are you using?
Have you tried the query page for testing (http://azure-metrics-exporter:8080/query
)?
@mblaschke : i am using version 1.0.2. i dont see any error. yes i tried query page too still no luck. what i obserrved was i was able to see metrics by specifying the target of a managed cluster but doesnt work on service discovery
using single instance something like this worked but no ServiceDiscovery
- job_name: azure-metrics-redis
scrape_interval: 1m
metrics_path: /probe/metrics/resource
params:
name: ["my_own_metric_name"]
subscription:
- xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
target:
- /subscriptions/.../resourceGroups/.../providers/Microsoft.Cache/Redis/...
- /subscriptions/.../resourceGroups/.../providers/Microsoft.Cache/Redis/...
- /subscriptions/.../resourceGroups/.../providers/Microsoft.Cache/Redis/...
- /subscriptions/.../resourceGroups/.../providers/Microsoft.Cache/Redis/...
metric:
- connectedclients
- totalcommandsprocessed
- cachehits
- cachemisses
- getcommands
- setcommands
- operationsPerSecond
- evictedkeys
- totalkeys
- expiredkeys
- usedmemory
- usedmemorypercentage
- usedmemoryRss
- serverLoad
- cacheWrite
- cacheRead
- percentProcessorTime
- cacheLatency
- errors
interval: ["PT1M"]
timespan: ["PT1M"]
aggregation:
- average
- total
static_configs:
- targets: ["azure-metrics:8080"]
@mblaschke could you please help on this!
@Giri0422
what do you mean with version 1.0.2
? there is no version 1.0.2
for azure-metrics-exporter 🤔
you changed the metric url when using service endpoint? i recommend using Azure ResourceGraph for ServiceDiscovery as it's the fastest way.
with which config have you tried ServiceConfig?
it actually supports all metrics which you can also get via the Azure Portal (it's just a client for the Monitor API, nothing more).
What error do you get or do you just get nothing? Which version are you using? Have you tried the query page for testing (
http://azure-metrics-exporter:8080/query
)?
What exactly is meant by HTTP 0 error
?
i tried deploy this on my aks cluster and i was able to extract metrics from resourcetype like keyvault.storageaccount,redis etc. when i did the same for Microsoft.ContainerService/managedClusters resourcetype i am not getting any results i have assigned monitoring reader role as well. can you please let me know if this exporter supports managed cluster resource type or am i wrong. can you please help on this.
Job_config :