Skip to content

Commit

Permalink
PMM-12462 Add HA usage telemetry (#2548)
Browse files Browse the repository at this point in the history
* PMM-12462 Add HA usage telemetry

* PMM-12462 update the envvar list

* PMM-12462 add more vars to the config

* Update managed/services/telemetry/config.default.yml

Co-authored-by: Nurlan Moldomurov <[email protected]>

* PMM-12462 follow up on review

* PMM-12462 update the ids

---------

Co-authored-by: Nurlan Moldomurov <[email protected]>
  • Loading branch information
ademidoff and BupycHuk authored Nov 28, 2023
1 parent ffcbe13 commit 3749f31
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions managed/services/telemetry/config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -970,35 +970,22 @@ telemetry:
- metric_name: "postgresql_db_count"
value: 1

# Note: use these for testing and PMM-12462
# - id: PMMServerFeatureToggles
# source: ENV_VARS
# summary: "Use of feature toggles in PMM Server"
# data:
# - metric_name: "pmm_server_disable_telemetry"
# column: "DISABLE_TELEMETRY"
# - metric_name: "pmm_server_enable_alerting"
# column: "ENABLE_ALERTING"
# - metric_name: "pmm_server_enable_backup_management"
# column: "ENABLE_BACKUP_MANAGEMENT"
# - metric_name: "pmm_server_enable_debug"
# column: "ENABLE_DEBUG"
# - metric_name: "pmm_server_enable_rbac"
# column: "ENABLE_RBAC"

# - id: PMMServerFeatureTogglesStripValues
# source: ENV_VARS
# summary: "Use of feature toggles in PMM Server"
# transform:
# type: StripValues
# data:
# - metric_name: "pmm_server_disable_telemetry"
# column: "DISABLE_TELEMETRY"
# - metric_name: "pmm_server_enable_alerting"
# column: "ENABLE_ALERTING"
# - metric_name: "pmm_server_enable_backup_management"
# column: "ENABLE_BACKUP_MANAGEMENT"
# - metric_name: "pmm_server_enable_debug"
# column: "ENABLE_DEBUG"
# - metric_name: "pmm_server_enable_rbac"
# column: "ENABLE_RBAC"
- id: PMMServerHAEnabled
source: ENV_VARS
summary: "Use of HA feature"
data:
- metric_name: "pmm_server_ha_enable"
column: "PERCONA_TEST_HA_ENABLE"

- id: PMMServerHAUseOfDBs
source: ENV_VARS
transform:
type: StripValues
summary: "Use of External DBs"
data:
- metric_name: "pmm_server_ha_clickhouse_address"
column: "PERCONA_TEST_PMM_CLICKHOUSE_ADDR"
- metric_name: "pmm_server_ha_postgres_address"
column: "PERCONA_TEST_POSTGRES_ADDR"
- metric_name: "pmm_server_ha_vm_url"
column: "PMM_VM_URL"

0 comments on commit 3749f31

Please sign in to comment.