Skip to content

Instantly share code, notes, and snippets.

@HighwayofLife
Created August 19, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HighwayofLife/87cb37b8c18b5342e3d3dde3a6e05e0e to your computer and use it in GitHub Desktop.
Save HighwayofLife/87cb37b8c18b5342e3d3dde3a6e05e0e to your computer and use it in GitHub Desktop.
datadog/configmap.yaml
---
kind: ConfigMap
apiVersion: v1
metadata:
name: dd-agent-config
namespace: datadog-monitor
data:
kube_apiserver_metrics.yaml: |
init_config:
instances:
## @param prometheus_url - string - required
## The URL where your application metrics are exposed by Prometheus.
#
- prometheus_url: "%%host%%:%%port%%/metrics"
## @param bearer_token_auth - string - optional
## Used if you are using RBACs and need the Agent to authenticate
## against the APIServer to retrieve metrics. Default to true.
#
bearer_token_auth: true
## @param tags - list of key:value element - optional
## List of tags to attach to every metric, event and service check emitted by this integration.
##
## Learn more about tagging: https://docs.datadoghq.com/tagging/
#
tags:
- "apiserver:%%host%%"
kubernetes_state.yaml: |
init_config:
instances:
## @param kube_state_url - string - required
## To enable Kube State metrics you must specify the url exposing the API
- kube_state_url: http://%%host%%:8080/metrics
docker_daemon.yaml: |
init_config:
instances:
## @param url - string - required
## URL of the Docker daemon socket to reach the Docker API. HTTP/HTTPS also works.
## Warning: if that's a non-local daemon, we won't be able to collect performance metrics.
#
- url: "unix://var/run/docker.sock"
datadog.yaml: |
init_config:
# Autodiscovery
listeners:
- name: kubelet
config_providers:
# The kubelet provider handles templates embedded in pod annotations, see
# https://docs.datadoghq.com/guides/autodiscovery/#template-source-kubernetes-pod-annotations
- name: kubelet
polling: true
# kubernetes_kubelet_host: autodetected
# kubernetes_https_kubelet_port: 1025
# kubernetes_http_kubelet_port: 1025
# kubelet_tls_verify: true
# apiserver_ca_cert: /etc/kubernetes/ssl/kube-apiserver.pem
# kubelet_cert: /etc/kubernetes/ssl/kube-ca.pem
logs.yaml: |
init_config:
#Log section
logs:
# - type : (mandatory) type of log input source (tcp / udp / file / docker)
# port / path : (mandatory) Set port if type is tcp or udp. Set path if type is file
# service : (mandatory) name of the service owning the log
# source : (mandatory) attribute that defines which integration is sending the logs
# sourcecategory : (optional) Multiple value attribute. Can be used to refine the source attribtue
# tags: (optional) add tags to each logs collected
- type: docker
image: rancher/hyperkube #or label: <MY_LABEL> or name: <CONTAINER_NAME>
source: kubernetes
sourcecategory: k8s-bde
service: kube_proxy
dns-check: |
init_config:
instances:
- name: scm.<redacted>.com
nameserver: <redacted>
hostname: scm.<redacted>.com
http-check: |
init_config:
instances:
- name: Test Cluster Pipeline URL
url: https://test.pipeline.vpc.<redacted>.net/login
check_certificate_expiration: true # default is true
disable_ssl_validation: true
collect_response_time: true
timeout: 2
# nginx-ingress-controller: |
# init_config:
#
# instances:
# ## @param prometheus_url - string - required
# ## The URL where your application metrics are exposed by Prometheus.
# - prometheus_url: http://localhost:10254/metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment