Skip to content

Commit

Permalink
Add additional Teleport metrics
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rosstimothy committed Jan 23, 2025
1 parent 4cd13e8 commit e733ed9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions teleport/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ These endpoints aren't activated by default. To enable the diagnostic HTTP endpo
- type: file
path: /var/log/teleport/teleport.log
source: teleport
service: telepor-service
log_processing_rules:
service: teleport-service
log_processing_rules:
- type: multi_line
name: logs_start_with_date
pattern: \d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])
Expand Down
2 changes: 2 additions & 0 deletions teleport/datadog_checks/teleport/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
"teleport_migrations": "auth.migrations",
"watcher_event_sizes": "auth.watcher_event_sizes",
"watcher_events": "auth.watcher_events",
"heartbeat_connections_received": "auth.heartbeat_connections_received",
"teleport_roles": "auth.teleport_roles",
}

AUTH_AUDIT_LOG_METRICS_MAP = {
Expand Down
2 changes: 2 additions & 0 deletions teleport/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ teleport.auth.migrations,gauge,,,,"Tracks for each migration if it is active (1)
teleport.auth.registered_servers,gauge,,,,"The number of Teleport services that are connected to an Auth Service instance grouped by version.",0,teleport,,
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,,
teleport.auth.user_login,count,,,,"Number of user logins.",0,teleport,,
teleport.auth.heartbeat_connections_received,count,,,,"Number of times auth received a heartbeat connection.",0,teleport,,
teleport.auth.teleport_roles,gauge,,,,"Number of roles that exist in the cluster.",0,teleport,,
teleport.bpf.lost_command_events,count,,,,"Number of lost command events.",0,teleport,,
teleport.bpf.lost_disk_events,count,,,,"Number of lost disk events.",0,teleport,,
teleport.bpf.lost_network_events,count,,,,"Number of lost network events.",0,teleport,,
Expand Down
7 changes: 7 additions & 0 deletions teleport/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,15 @@
"auth.grpc_server_msg_sent.count",
"auth.grpc_server_started.count",
"auth.cluster_name_not_found.count",
"auth.connected_resources",
"auth.teleport_registered_servers",
"auth.teleport_registered_servers_by_install_methods",
"auth.user_login.count",
"auth.migrations",
"auth.watcher_event_sizes",
"auth.watcher_events"
"auth.heartbeat_connections_received.count",
"auth.teleport_roles.count",
]


Expand Down
2 changes: 1 addition & 1 deletion teleport/tests/docker/teleport/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
teleport-service:
image: public.ecr.aws/gravitational/teleport:14.3
image: public.ecr.aws/gravitational/teleport-distroless:17.2
ports:
- 3000:3000
- 3080:3080
Expand Down

0 comments on commit e733ed9

Please sign in to comment.