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

Azure Database for MySQL wrong server type, field type is not optional #60

Open
kromooooo opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@kromooooo
Copy link

app version 2.11

When I tried to declare a classic scrape (without discovery) for MySQL single server, I used this manual
https://docs.promitor.io/v2.11/scraping/providers/mysql/

Here is part of my scrape configuration

  - name: azure_my_sql_network_incoming_bytes
    description: "Network incomming bytes on the server"
    resourceType: MySql
    azureMetricConfiguration:
      metricName: network_in
      aggregation:
        type: Total
    resources: # Optional, required when no resource discovery is configured
    - serverName: stage-db
      #type: Simple

  - name: azure_my_sql_network_outgoing_bytes
    description: "Network outgoing bytes on the server"
    resourceType: MySql
    azureMetricConfiguration:
      metricName: network_out
      aggregation:
        type: Total 
    resources: # Optional, required when no resource discovery is configured
    - serverName: stage-db
      type: Simple

when I applied it (I'm using helm chart, but it doesn't matter here) I saw that configuration checking finished with error, here is part of log

image

looks like there are 2 errors in the docs:

  • field type is mandatory
  • Simple is the incorrect type of server, it should be Single

For the Flexible server all working fine

Working configuration for me

- name: azure_my_sql_network_outgoing_bytes
   description: "Network outgoing bytes on the server"
   resourceType: MySql
   azureMetricConfiguration:
     metricName: network_out
     aggregation:
       type: Total 
   resources: # Optional, required when no resource discovery is configured
   - serverName: stage-db
     type: Single
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

No branches or pull requests

1 participant