sqlquery: collection_interval: 10s driver: mydriver datasource: "host=localhost port=5432 user=me password=s3cr3t sslmode=disable" queries: - sql: "select count(*) as count, type from mytable group by type" metrics: - value_column: "count" attribute_columns: [ "type" ] data_type: gauge value_type: int monotonic: false aggregation: cumulative