Skip to content

Commit

Permalink
PMM-12871 [telemetry] time to first added service (#2798)
Browse files Browse the repository at this point in the history
PMM-12871


[telemetry] time to first added service
  • Loading branch information
rnovikovP authored Jan 29, 2024
1 parent 614981e commit a6ec20e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions managed/services/telemetry/config.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ telemetry:
- metric_name: "pmm_server_updates_disabled"
column: "updates_disabled"

- id: PMMServerFirstServiceAdded
source: PMMDB_SELECT
query: EXTRACT(EPOCH FROM y.created_at::timestamp) - EXTRACT(EPOCH FROM x.created_at::timestamp) AS value_difference_sec FROM services x JOIN services y ON y.service_name != 'pmm-server-postgresql' WHERE x.service_name = 'pmm-server-postgresql' AND y.created_at = (SELECT MIN(created_at) FROM services WHERE service_name != 'pmm-server-postgresql');
summary: "Difference between PMM installation and the first real service added to PMM"
data:
- metric_name: "pmm_server_first_service_added_sec"
column: "value_difference_sec"

# Services Information
- id: MySQLVersion
source: VM
Expand Down

0 comments on commit a6ec20e

Please sign in to comment.