Path: blob/main/docs/sources/operator/operator-integrations.md
4096 views
---
---
Set up integrations
This topic provides examples of setting up Grafana Agent Operator integrations, including node_exporter and mysqld_exporter.
Before you begin
Before you begin, make sure that you have deployed the Grafana Agent Operator CRDs and installed Agent Operator into your cluster. See [Install Grafana Agent Operator with Helm]({{< relref "./helm-getting-started.md" >}}) or [Install Grafana Agent Operator]({{< relref "./getting-started.md" >}}) for instructions.
Also, make sure that you [deploy the GrafanaAgent resource]({{< relref "./deploy-agent-operator-resources.md" >}}) and the yaml
you use has the integrations
definition under spec
.
Important: The field name
under the spec
section of the manifest must contain the name of the integration to be installed according to the list of integrations defined [here]({{< relref "../static/configuration/integrations/integrations-next/_index.md#config-changes" >}}).
Important: The value of the metrics_instance
field needs to be in the format <namespace>/<name>
, with namespace and name matching the values defined in the metadata
section from the MetricsInstance
resource as explained in [deploy a MetricsInstance resource]({{< relref "./deploy-agent-operator-resources.md#deploy-a-metricsinstance-resource" >}})
Set up an Agent Operator node_exporter integration
The Agent Operator node_exporter integration lets you monitor your hardware and OS metrics from Unix-based machines, including Linux machines.
To set up a node_exporter integration:
Copy the following manifest to a file:
Customize the manifest as needed and roll it out to your cluster using
kubectl apply -f
followed by the filename.The manifest causes Agent Operator to create an instance of a grafana-agent-integrations-deploy resource that exports Node metrics.
Set up an Agent Operator mysqld_exporter integration
The Agent Operator mysqld_exporter integration is an embedded version of mysqld_exporter that lets you collect metrics from MySQL servers.
To set up a mysqld_exporter integration:
Copy the following manifest to a file:
Customize the manifest as needed and roll it out to your cluster using
kubectl apply -f
followed by the filename.The manifest causes Agent Operator to create an instance of a grafana-agent-integrations-deploy resource that exports MySQL metrics.