webdevops / azure-devops-exporter

Prometheus exporter for Azure DevOps (VSTS) including agent pools, builds, releases, deployments, pullrequests and repo stats
MIT License
147 stars 57 forks source link

how to store metrics to external prometheus database #29

Closed tsaibabu4u closed 3 years ago

tsaibabu4u commented 3 years ago

Hi There, I was able to run the docker image and able to see the collected metrics information but I dont see any prometheus url to query ? is it possible to push these metrics to my own prometheus databse ?

mblaschke commented 3 years ago

metrics are available via /metrics endpoint, you just need to scrape the endpoint like any other service.

tsaibabu4u commented 3 years ago

Thank you for the response. I don't see any service running on any port while running this docker image in local will it generate any endpoint ? if so what would be the url

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 478b2e3f8d5a webdevops/azure-devops-exporter "/azure-devops-expor…" 4 hours ago Up 4 hours awesome_hugle

Sreekanth-BM commented 3 years ago

@tsaibabu4u : Did you find a way to get metrics to any endpoint? (http://localhost:9090)

Sreekanth-BM commented 3 years ago

@tsaibabu4u : Thanks!

Referred your reply on other issue to map 8080.

mblaschke commented 3 years ago

Use the container IP or hostname and fetch it directly from the container (recommended) or map the port to the host.

Sreekanth-BM commented 3 years ago

Yes, it worked!