---
description: >-
  Deploy Telegraf as a daemonset into your Kubernetes environment to collect and
  forward performance metrics from your clusters
---

# K8 Telegraf Daemon

* Clone the telegraf-daemonset repository from the MetricFire GitHub: [https://github.com/metricfire/telegraf-daemonset/](https://github.com/metricfire/telegraf-daemonset/)

```
telegraf-daemonset/
├── kustomization.yaml
└── resources/
    ├── config.yaml
    ├── daemonset.yaml
    ├── namespace.yaml
    ├── role.yaml
    ├── role-binding.yaml
    └── service_account.yaml
```

* Add your **HG API KEY** to the resources/config.yaml file
* Point your kubectl command line utility to the context of the cluster you wish to monitor: `kubectl config use-context`
* Deploy the kustomization.yaml manifest into your cluster: `kubectl apply -k .`
* Generate the **Kubernetes Overview** dashboard from our [Dashboard Library](https://docs.hostedgraphite.com/dashboard-and-graphs/dashboard-library) to visualize performance metrics from your nodes, containers, pods, and more!

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FF0GRK4GHkC2pdd8M49Hr%2Fk8-overview-dash.png?alt=media&#x26;token=3457ff35-a61e-4a60-b6ac-0d5dc682bfb5" alt=""><figcaption><p>Kubernetes Overview dashboard</p></figcaption></figure>

* See more configuration options in the official GitHub repo [HERE](https://github.com/influxdata/telegraf/blob/release-1.31/plugins/inputs/kubernetes/README.md), and our detailed blog article around deploying the Telegraf daemonset [HERE](https://www.metricfire.com/blog/guide-to-monitoring-kubernetes-using-telegraf-as-a-daemonset/).
