Skip to content

Commit

Permalink
PMM-10506: Add usage metrics (#1150)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Mukas <[email protected]>
  • Loading branch information
dliakhov and ritbl committed Aug 15, 2022
1 parent 25048cf commit 9faae18
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions managed/services/telemetry/config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@ telemetry:
- metric_name: "pmm_server_usage_services_count"
column: "services_count"

- id: PMMUsageEnvironmentsCount
source: PMMDB_SELECT
query: count(distinct environment) as environments_count from services where environment != ''
summary: "Monitored environments count"
data:
- metric_name: "pmm_server_usage_environments_count"
column: "environments_count"

- id: PMMUsageClustersCount
source: PMMDB_SELECT
query: count(distinct cluster) as clusters_count from services where cluster != '';
summary: "Monitored clusters count"
data:
- metric_name: "pmm_server_usage_clusters_count"
column: "clusters_count"

# Nodes information
- id: NodesInfoPMMAgentEmbedded
source: PMMDB_SELECT
Expand Down

0 comments on commit 9faae18

Please sign in to comment.