Move query-exporter to docker. Update dash.
This commit is contained in:
parent
758c5fe5e6
commit
e8ca4e808e
5 changed files with 575 additions and 499 deletions
23
metrics/prometheus/exporters/query-exporter/config.yaml
Normal file
23
metrics/prometheus/exporters/query-exporter/config.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
databases:
|
||||
db1:
|
||||
dsn: postgres://postgres:postgres@host.docker.internal:15432/bluesky?sslmode=disable
|
||||
|
||||
metrics:
|
||||
repos_fully_indexed:
|
||||
type: gauge
|
||||
description: Repositories fully indexed
|
||||
repos_seen:
|
||||
type: gauge
|
||||
description: Repositories seen
|
||||
|
||||
queries:
|
||||
query1:
|
||||
interval: 30
|
||||
databases: [db1]
|
||||
metrics: [repos_fully_indexed]
|
||||
sql: select count(*) as repos_fully_indexed from repos where last_indexed_rev <> '' and (last_indexed_rev >= first_rev_since_reset or first_rev_since_reset is null or first_rev_since_reset = '');
|
||||
query2:
|
||||
interval: 30
|
||||
databases: [db1]
|
||||
metrics: [repos_seen]
|
||||
sql: select count(*) as repos_seen from repos;
|
1
metrics/prometheus/exporters/query-exporter/example.env
Normal file
1
metrics/prometheus/exporters/query-exporter/example.env
Normal file
|
@ -0,0 +1 @@
|
|||
POSTGRES_PASSWORD='your password'
|
Loading…
Add table
Add a link
Reference in a new issue