5 Instalación de un módulo de Dashboard - xavisan/Datadog GitHub Wiki
Cuando se termina de realizar todas las configuraciones Datadog muestra algo muy interesante , en el apartado de New Stuff, observaremos a la derecha que podremos realizar la instalación de un módulo en concreto correspondiente a Dashboards, pre-configurados que realmente pueden sernos muy útiles como guía, en este sentido instalaremos el correspondiente a Docker y al de Kubernetes.
En la instalación del módulo de Kubernetes, pulsaremos en “Kubernetes – Overview” para saber además que funcionalidades nos aporta, pulsando en “Install”.
Esto mostrará una dialog de instalación con tres pestañas, "Overview", "Configuration" y "Metrics".
Seleccionaremos “Configuration”, en este caso será necesario instalar y habilitar las Metricas de estado de Kubernetes (Kubernetes State Metrics), https://docs.datadoghq.com/integrations/kubernetes/#kubernetes-state-metrics para ello será necesario aplicar lo siguiente:
init_config: instances: # The kubernetes check retrieves metrics from cadvisor running under kubelet. # By default we will assume we're running under docker and will use the address # of the default router to reach the cadvisor api. # # To override, e.g. in the case of a standalone cadvisor instance, use the following: # # host: localhost # port: 4194 # method: http - port: 4194
# use_histogram controls whether we send detailed metrics, i.e. one per container. # When false, we send detailed metrics corresponding to individual containers, tagging by container id # to keep them unique. # When true, we aggregate data based on container image. # use_histogram: True # # Kubelet checks # enable_kubelet_checks: true # kubelet_port: 10255 # # We can define a whitelist of patterns that permit publishing raw metrics. # enabled_rates: # - cpu.* # - network.* # # enabled_gauges: # - filesystem.* # # Custom tags that should be applied to kubernetes metrics # tags: # - optional_tag1 # - optional_tag2
En la tab de "Metrics", podremos observar todas las méticas que serán aportadas para poder monitorizar, métricas realmente muy interesantes para monitorizar los distintos elementos de Kubernetes.
Pulsaremos “Install” y aplicará el componente en el apartado de Dashboards.