Skip to content

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

@kromooooo

Description

@kromooooo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions