-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from kate-goldenring/prometheus-support
feat: support exporting data to a Grafana dashboard
- Loading branch information
Showing
11 changed files
with
1,751 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Exporting to Datadog | ||
|
||
## Installing the Datadog Agent on a K8s Cluster | ||
|
||
Install the Datadog cluster agent on your cluster [using Helm](https://docs.datadoghq.com/containers/kubernetes/installation/?tab=helm), which will collect all of these [metrics](https://docs.datadoghq.com/containers/kubernetes/data_collected/). | ||
|
||
Configure your Datadog API key and install the Helm chart as follows: | ||
|
||
```sh | ||
# Configure the API key for your Datadog account | ||
export DATADOG_API_KEY="<YOUR DD API KEY>" | ||
|
||
# Add and update the Datadog repository | ||
helm repo add datadog https://helm.datadoghq.com | ||
helm repo update | ||
|
||
# Install the datadog chart | ||
# | ||
# Note: the datadog.kubelet config avoids 'unable to reliably determine the host name.' when running on AKS. | ||
# Another option is to set 'kubelet.tlsVerif=false' | ||
# Ref https://docs.datadoghq.com/containers/kubernetes/distributions/?tab=helm#aks-kubelet-certificate | ||
# Note: also possible to supply a secret for the API key | ||
# https://github.com/DataDog/helm-charts/tree/main/charts/datadog#create-and-provide-a-secret-that-contains-your-datadog-api-and-app-keys | ||
# | ||
helm upgrade --install datadog \ | ||
--namespace datadog \ | ||
--create-namespace \ | ||
--set datadog.kubelet.host.valueFrom.fieldRef.fieldPath=spec.nodeName \ | ||
--set datadog.kubelet.hostCAPath=/etc/kubernetes/certs/kubeletserver.crt \ | ||
--set datadog.apiKey="${DATADOG_API_KEY}" datadog/datadog | ||
``` | ||
|
||
## Run Tests with Datadog Output | ||
|
||
This ensures K6 is executed with the correct flags to export to Datadog using the statsd protocol. | ||
|
||
```sh | ||
OUTPUT=datadog make run-tests | ||
``` | ||
|
||
## Importing the Custom Datadog Dashboard | ||
|
||
Import the [datadog-spinkube-performance-dashboard.json](./datadog-spinkube-performance-dashboard.json) file into Datadog to immediately start visualizing data from a recent test run. |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.