-
Notifications
You must be signed in to change notification settings - Fork 54
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
[PromQL] How to use these metrics? #2
Comments
Currently we're exporting most informations which are available. But Azure DevOps can delete builds/releases so there can be a difference for the count.
Will add some examples later :) PS: Any metrics you need? |
+1 for this request. it will be helpful to have some sample prometheus queries in the docs for this repo. The last one would be very useful for us. |
Here's some metrics that I think would be useful.
Additionally, do you have any tips on configuration which would help with the accuracy or usability of the exported metrics? TIA, @mblaschke, for your time! After our exploration phase, I will share our queries a/o grafana dashboard to contribute |
Ive played a bit with promql and have come up with a few useful metrics in this dashboard: https://gist.github.com/samuel-begin/a67ca79c5d46baa94c57f360010172ee at this point, i have the following metrics:
|
Still working on more statistic metrics |
With 0.8.0-beta1 i've added:
But removed |
@mblaschke I'm running beta3 and don't see the metrics you mention above.. or am i missing something obvious? |
@mblaschke I'm not sure how to use this azure-devops-exporter. The application is running in my container and I'm seeing it is pulling enough details from Azure DevOps. But, the metrics are not showing in Prometheus (http:https://localhost:9090/graph). Can you please help me how to use this metrics in grafana? |
@viniston Have you a job to your Prometheus config? E.g
|
@chelnak thank you very much for your help. I don't have any job like that. I will try to configure it as you mentioned above and will post my status here. |
Hi @chelnak , I'm seeing below error in Prometheus UI Please help me to understand where I'm doing wrong. |
Assuming that you have all of this running in k8s you might want to check your target address.. The one in my example is specific to how I named the exporter service and the namespace i am using. |
@chelnak I have azure-devops-exporter locally running in docker container where my Prometheus also running. Do we need to see those new metric should display in Prometheus as well? address="prometheus-azure-devops-exporter.default.svc:8080" Is this my container localhost endpoint? |
@chelnak I have found my issue which was wrong exporter URL and not it is fixed. 👍 |
Thank you for your valuable reply and you saved my day. |
I've added some promql queries in the README, hope that helps. Thanks for all replies and answers here, you're great :) |
Signed-off-by: Markus Blaschke <[email protected]>
I've managed to find some useful visualizations of our devops data, but it has been hard due to the nature of the format in which this exporter scrapes.
I managed to list average build times per definition
And Ive had a hard time finding consistent data for current build count. for exemaple, these two metrics give off different data (probably due to the scrape timing being different)
Would you consider adding some query samples or even a simple grafana dashboard to get us started exploring your metrics exporter?
The text was updated successfully, but these errors were encountered: