# K8 Telegraf Daemon

* Clone the telegraf-daemonset repository from the MetricFire GitHub: <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="/files/93IDUMjycxdWCs5GkjOt" 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/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hostedgraphite.com/agents-guide/k8-telegraf-daemon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
