- sqlquery:
- collection_interval: 10s
- driver: mydriver
- queries:
- - sql: "select count(*) as count, type from mytable group by type"
- metrics:
- - metric_name: val.count
- value_column: "count"
- attribute_columns: [ "type" ]
- data_type: gauge
- value_type: int
- monotonic: false
- aggregation: cumulative
|