Skip to content

Commit e733ed9

Browse files
committed
Add additional Teleport metrics
In addition to adding the Teleport auth heartbeat_connections_received and teleport_roles metrics, this cleans up a few typos and updates Teleport image and tag used in the docker tests.
1 parent 4cd13e8 commit e733ed9

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

teleport/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ These endpoints aren't activated by default. To enable the diagnostic HTTP endpo
4949
- type: file
5050
path: /var/log/teleport/teleport.log
5151
source: teleport
52-
service: telepor-service
53-
log_processing_rules:
52+
service: teleport-service
53+
log_processing_rules:
5454
- type: multi_line
5555
name: logs_start_with_date
5656
pattern: \d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])

teleport/datadog_checks/teleport/metrics.py

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
"teleport_migrations": "auth.migrations",
6262
"watcher_event_sizes": "auth.watcher_event_sizes",
6363
"watcher_events": "auth.watcher_events",
64+
"heartbeat_connections_received": "auth.heartbeat_connections_received",
65+
"teleport_roles": "auth.teleport_roles",
6466
}
6567

6668
AUTH_AUDIT_LOG_METRICS_MAP = {

teleport/metadata.csv

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ teleport.auth.migrations,gauge,,,,"Tracks for each migration if it is active (1)
104104
teleport.auth.registered_servers,gauge,,,,"The number of Teleport services that are connected to an Auth Service instance grouped by version.",0,teleport,,
105105
teleport.auth.registered_servers_by_install_methods,gauge,,,,"The number of Teleport services that are connected to an Auth Service instance grouped by install methods.",0,teleport,,
106106
teleport.auth.user_login,count,,,,"Number of user logins.",0,teleport,,
107+
teleport.auth.heartbeat_connections_received,count,,,,"Number of times auth received a heartbeat connection.",0,teleport,,
108+
teleport.auth.teleport_roles,gauge,,,,"Number of roles that exist in the cluster.",0,teleport,,
107109
teleport.bpf.lost_command_events,count,,,,"Number of lost command events.",0,teleport,,
108110
teleport.bpf.lost_disk_events,count,,,,"Number of lost disk events.",0,teleport,,
109111
teleport.bpf.lost_network_events,count,,,,"Number of lost network events.",0,teleport,,

teleport/tests/common.py

+7
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,15 @@
8484
"auth.grpc_server_msg_sent.count",
8585
"auth.grpc_server_started.count",
8686
"auth.cluster_name_not_found.count",
87+
"auth.connected_resources",
88+
"auth.teleport_registered_servers",
89+
"auth.teleport_registered_servers_by_install_methods",
8790
"auth.user_login.count",
8891
"auth.migrations",
92+
"auth.watcher_event_sizes",
93+
"auth.watcher_events"
94+
"auth.heartbeat_connections_received.count",
95+
"auth.teleport_roles.count",
8996
]
9097

9198

teleport/tests/docker/teleport/docker-compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
teleport-service:
3-
image: public.ecr.aws/gravitational/teleport:14.3
3+
image: public.ecr.aws/gravitational/teleport-distroless:17.2
44
ports:
55
- 3000:3000
66
- 3080:3080

0 commit comments

Comments
 (0)