forked from HoussemDellai/datadog-prometheus-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sh
35 lines (23 loc) · 1.06 KB
/
commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Install Datadog into Kubernetes using Helm chart
API_KEY="<YOUR DATADOG API KEY>"
helm repo add datadog https://helm.datadoghq.com
helm install datadog `
--set datadog.site='datadoghq.com' `
--set datadog.apiKey=$API_KEY `
--set datadog.apm.enabled=true `
datadog/datadog
# View metrics on Datadog dashboard
# Deploy sample app expposing prometheus metrics on /metrics
kubectl apply -f app-deployment.yaml
# Show Prometheus Nuget package config and View the metrics on /metrics
# Now we want to collect these application metrics using Datadog
# Configure Datadog to collect application metrics
# using datadog-values.yaml file
helm upgrade datadog -f datadog-values.yaml `
--set datadog.site='datadoghq.com' `
--set datadog.apiKey=$API_KEY `
--set datadog.apm.enabled=true `
datadog/datadog
# View custom metrics on Datadog dashboard -> Metrics -> Explorer
# Creating custom metrics like page views counter in app code
# Viewing the custom metric in Datadog dashboard