-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Not able to use Generic Scraper with PostgreSQL #591
Comments
That's interesting, thanks for reporting, the config looks good. Can you provide the following please:
That should give some idea what is going on. If that is not clear we can have a look at the Azure Portal HTTP trace for getting the data. Thank you! |
Confirmed that I'm using Helm chart 0.3.0 with app version 1.0.0-preview-7! I also confirmed that I'm able to see the metric data using the Azure Monitor API, using the same parameters I'm giving Promitor (resourceUri, metric cpu_percent, aggregate Average): |
Hm that's odd. So calling Azure Monitor API with same config works on your end, but not with Promitor? Will see if I can spin one up and give it a try. |
I took the liberty to use your config for my instance. When I checked the loaded configuration via http://localhost:32775/api/v1/configuration/metric-declaration, I've received the following: [
{
"resourceType": "Generic",
"resourceUri": "Microsoft.DBforPostgreSQL/servers/promitor",
"azureMetricConfiguration": {
"metricName": "cpu_percent",
"aggregation": {
"type": "None",
"interval": "00:05:00"
}
},
"description": "test",
"name": "generic_postgresql_scraper",
"resourceGroupName": "promitor",
"scraping": {
"schedule": "0 * * ? * *"
}
}
] Note that Once that is changed, it should work fine:
Can you please try fixing the config please? I'll open an issue to streamline this so that it should be logged and blocked, sorry for that! |
Changing it from Type to type worked - thanks Tom! |
Good to hear and sorry for this hickup! |
Expected Behavior
When using the Generic Metrics Config, I should be able to view metrics from PostgreSQL. As far as I can tell I'm using the correct settings, but please let me know if this is a user error :)
Actual Behavior
I get back a response on localhost:8080/metrics, but the actual value of my metric is 0, even though there is data under the Azure Metrics Portal for the resource.
Steps to Reproduce the Problem
Configuration
Provide insights in the configuration that you are using:
Used default scraping schedule
I used this as a reference for what metrics to scrape:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftdbforpostgresqlservers
and here is my YAML:
Specifications
The text was updated successfully, but these errors were encountered: