Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide resource_uri label for all metrics #562

Merged
merged 1 commit into from
May 20, 2019

Conversation

tomkerkhove
Copy link
Owner

Provide resource_uri label for all metrics

Relates to #513

Scraping Output

# HELP demo_azurestoragequeue_queue_size Approximate amount of messages in 'orders' queue (determined with StorageQueue provider)
# TYPE demo_azurestoragequeue_queue_size gauge
demo_azurestoragequeue_queue_size{resource_uri="subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Storage/storageAccounts/promitor/queueServices"} 0 1558374841314
# HELP demo_azurestoragequeue_queue_timespentinqueue Approximate amount of time that the oldest message has been in 'orders' queue (determined with StorageQueue provider)
# TYPE demo_azurestoragequeue_queue_timespentinqueue gauge
demo_azurestoragequeue_queue_timespentinqueue{resource_uri="subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Storage/storageAccounts/promitor/queueServices"} 0 1558374902571
# HELP demo_generic_namespace_size Size of all queues in our Azure Service Bus namespace (determined with Generic provider)
# TYPE demo_generic_namespace_size gauge
demo_generic_namespace_size{resource_uri="subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.ServiceBus/namespaces/promitor-messaging"} 8195 1558374842091
# HELP demo_generic_queue_size Amount of active messages of the 'myqueue' queue (determined with Generic provider)
# TYPE demo_generic_queue_size gauge
demo_generic_queue_size{resource_uri="subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.ServiceBus/namespaces/promitor-messaging"} 2895 1558374903499
# HELP demo_servicebusqueue_queue_size Amount of active messages of the 'myqueue' queue (determined with ServiceBusQueue provider)
# TYPE demo_servicebusqueue_queue_size gauge
demo_servicebusqueue_queue_size{resource_uri="subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.ServiceBus/namespaces/promitor-messaging"} 8685 1558374904021
# HELP promitor_ratelimit_arm Indication how many calls are still available before Azure Resource Manager is going to throttle us.
# TYPE promitor_ratelimit_arm gauge
promitor_ratelimit_arm{tenant_id="c8819874-9e56-4e3f-b1a8-1c0325138f27",subscription_id="0f9d7fea-99e8-4768-8672-06a28514f77e",app_id="ceb249a3-44ce-4c90-8863-6776336f5b7e"} 11962 1558374903933

@promitor-bot
Copy link

Docker image for this PR was built and is available on Docker Hub.

You can pull it locally via the CLI:

docker pull tomkerkhove/promitor-agent-scraper-ci:pr562

Want to verify the new version? Run it locally:

docker run -d -p 8999:80 --name promitor-agent-scraper-pr562 \
                         --env PROMITOR_AUTH_APPID='<azure-ad-app-id>' \
                         --env-file C:/Promitor/az-mon-auth.creds \
                         --volume C:/Promitor/metrics-declaration.yaml:/config/metrics-declaration.yaml \
                         tomkerkhove/promitor-agent-scraper-ci:pr562

@tomkerkhove tomkerkhove merged commit d6ec76a into master May 20, 2019
@tomkerkhove tomkerkhove deleted the features-resource-uri-label branch May 20, 2019 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants