Ce check recueille des métriques à partir de Gatekeeper OPA.
Configuration
Suivez les instructions ci-dessous pour installer et configurer ce check pour un Agent exécuté sur un cluster Kubernetes. Consultez également la documentation relative aux modèles d’intégration Autodiscovery pour découvrir comment appliquer ces instructions.
Installation
Agent v7.26.0/v6.26.0 ou ultérieur
Pour utiliser une intégration provenant du référentiel integrations-extra avec l’Agent Docker, nous vous recommandons de générer l’Agent avec l’intégration installée. Utilisez le Dockerfile suivant pour créer une version mise à jour de l’Agent comprenant l’intégration gatekeeper issue de integrations-extras :
FROM gcr.io/datadoghq/agent:latest
RUN agent integration install -r -t datadog-gatekeeper==<VERSION_INTÉGRATION>
Versions antérieures de l’Agent
Pour installer le check gatekeeper sur votre cluster Kubernetes :
Modifiez le fichier gatekeeper/conf.yaml dans le dossier /confd que vous avez ajouté au pod de l’Agent pour commencer à recueillir vos données de performance gatekeeper. Consultez le fichier d’exemple gatekeeper/conf.yaml pour découvrir toutes les options de configuration disponibles.
Total number of constraint template ingestion actions
gatekeeper.violations (gauge)
Total number of violations per constraint
gatekeeper.constraints (gauge)
Current number of known constraints
gatekeeper.constraint_templates (gauge)
Number of observed constraint templates
gatekeeper.request.duration.seconds.sum (count)
The response time in seconds Shown as second
gatekeeper.request.duration.seconds.count (count)
The response time in seconds Shown as second
gatekeeper.request.count (count)
Total number of requests that are routed to webhook
gatekeeper.sync (gauge)
Total number of resources of each kind being cached
gatekeeper.sync.duration.seconds.sum (count)
Latency of sync operation in seconds Shown as second
gatekeeper.sync.duration.seconds.count (count)
Latency of sync operation in seconds Shown as second
gatekeeper.sync.last_run_time (gauge)
Timestamp of last sync operation
gatekeeper.watch.intended (gauge)
The total number of Group/Version/Kinds that the watch manager has instructions to watch
gatekeeper.watch.watched (gauge)
The total number of Group/Version/Kinds currently watched by the watch manager
Événements
Gatekeeper n’inclut aucun événement.
Checks de service
gatekeeper.prometheus.health Returns CRITICAL if the agent fails to connect to the Prometheus metrics endpoint, otherwise OK. Statuses: ok, critical
gatekeeper.health Returns CRITICAL if the agent fails to connect to the gatekeeper health endpoint, OK if it returns 200, WARNING otherwise. Statuses: ok, warning, critical