Skip to content

Commit

Permalink
finalize dashboard, update example sql, remove comments from scrape, …
Browse files Browse the repository at this point in the history
…change gauge -> counter
  • Loading branch information
mrjones-plip committed Apr 22, 2024
1 parent 65327e0 commit e4d1f20
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 30 deletions.
4 changes: 2 additions & 2 deletions exporters/postgres/couch2pg_collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ queries:
seq like '%-%'
metrics:
- metric_name: couch2pg
type: gauge
- metric_name: couch2pg_progress_sequence
type: counter
help: 'couch2pg backlog.'
key_labels:
- db
Expand Down
11 changes: 0 additions & 11 deletions exporters/postgres/scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,3 @@ scrape_configs:
- job_name: sql_exporter
static_configs:
- targets: ['sql_exporter:9399']
# relabel_configs:
# - source_labels: [__address__]
# regex: "(.*)"
# replacement: "sql_exporter://${1}"
# target_label: __param_target
# - source_labels: [__address__]
# target_label: instance
# - source_labels: [__address__]
# target_label: __param_auth_module
# - target_label: __address__
# replacement: postgres-exporter:9187
3 changes: 2 additions & 1 deletion exporters/postgres/sql_servers_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
enable_ping: true
static_configs:
- targets:
local-cht: 'postgres://cht_couch2pg:cht_couch2pg_password@172.17.0.1:5432/cht?sslmode=disable' # //NOSONAR - password is safe to commit
# " same as URL in cht-instances.yml ": 'postgres://USERNAME:PASSWORD@DB_SERVER_IP/DATABASE
"172-17-0-1.local-ip.medicmobile.org:10464": 'postgres://cht_couch2pg:cht_couch2pg_password@172.17.0.1:5432/cht?sslmode=disable' # //NOSONAR - password is safe to commit

32 changes: 16 additions & 16 deletions grafana/provisioning/dashboards/CHT/cht_admin_overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"content": "# CHT Watchdog\n\nSee the [CHT documentation](https://docs.communityhealthtoolkit.org/apps/guides/hosting/monitoring/) for more information about monitoring and alerting!",
"mode": "markdown"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"type": "text"
},
{
Expand Down Expand Up @@ -181,7 +181,7 @@
"showHeader": false,
"sortBy": []
},
"pluginVersion": "9.5.3",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -374,7 +374,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -459,7 +459,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -546,7 +546,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -652,7 +652,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -776,7 +776,7 @@
"showUnfilled": true,
"valueMode": "color"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -881,7 +881,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -969,7 +969,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1076,7 +1076,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1193,7 +1193,7 @@
"showThresholdLabels": false,
"showThresholdMarkers": false
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand All @@ -1215,7 +1215,7 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "sum(couch2pg_progress_sequence{cht_instance=~\"$cht_instance\", db=~\"medic|medic-sentinel|medic-users-meta\"})",
"expr": "sum(couch2pg_progress_sequence{target=~\"$cht_instance\", db=~\"medic|medic-sentinel|medic-users-meta\"})",
"hide": false,
"instant": true,
"legendFormat": "__auto",
Expand Down Expand Up @@ -1305,7 +1305,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -1482,7 +1482,7 @@
"showHeader": false,
"sortBy": []
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"category": "All categories",
Expand Down Expand Up @@ -1670,7 +1670,7 @@
},
"textMode": "auto"
},
"pluginVersion": "10.0.0",
"pluginVersion": "10.1.1",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -2340,6 +2340,6 @@
"timezone": "",
"title": "CHT Admin Overview",
"uid": "oa2OfL-Vk",
"version": 35,
"version": 36,
"weekStart": ""
}

0 comments on commit e4d1f20

Please sign in to comment.