config-invalid-missing-driver.yaml 434 B

12345678910111213
  1. sqlquery:
  2. collection_interval: 10s
  3. datasource: "host=localhost port=5432 user=me password=s3cr3t sslmode=disable"
  4. queries:
  5. - sql: "select count(*) as count, type from mytable group by type"
  6. metrics:
  7. - metric_name: val.count
  8. value_column: "count"
  9. attribute_columns: [ "type" ]
  10. data_type: gauge
  11. value_type: int
  12. monotonic: false
  13. aggregation: cumulative