
// This assembly is included in the following assemblies:
//
// metrics/assembly_metrics.adoc

[id='assembly-metrics-config-files-{context}']

= Example metrics files

[role="_abstract"]
You can find example Grafana dashboards and other metrics configuration files in the xref:config-examples-{context}[example configuration files] provided by Strimzi.

.Example metrics files provided with Strimzi
[source]
--
metrics
├── grafana-dashboards <1>
│   ├── strimzi-cruise-control.json
│   ├── strimzi-kafka-bridge.json
│   ├── strimzi-kafka-connect.json
│   ├── strimzi-kafka-exporter.json
│   ├── strimzi-kafka-mirror-maker-2.json
│   ├── strimzi-kafka.json
│   ├── strimzi-operators.json
│   └── strimzi-zookeeper.json
├── grafana-install
│   └── grafana.yaml <2>
├── prometheus-additional-properties
│   └── prometheus-additional.yaml <3>
├── prometheus-alertmanager-config
│   └── alert-manager-config.yaml <4>
├── prometheus-install
│    ├── alert-manager.yaml <5>
│    ├── prometheus-rules.yaml <6>
│    ├── prometheus.yaml <7>
│    └── strimzi-pod-monitor.yaml <8>
├── kafka-bridge-metrics.yaml <9>
├── kafka-connect-metrics.yaml <10>
├── kafka-cruise-control-metrics.yaml <11>
├── kafka-metrics.yaml <12>
└── kafka-mirror-maker-2-metrics.yaml <13>
--
<1> Example Grafana dashboards for the different Strimzi components.
<2> Installation file for the Grafana image.
<3> Additional configuration to scrape metrics for CPU, memory and disk volume usage, which comes directly from the Kubernetes cAdvisor agent and kubelet on the nodes.
<4> Hook definitions for sending notifications through Alertmanager.
<5> Resources for deploying and configuring Alertmanager.
<6> Alerting rules examples for use with Prometheus Alertmanager (deployed with Prometheus).
<7> Installation resource file for the Prometheus image.
<8> PodMonitor definitions translated by the Prometheus Operator into jobs for the Prometheus server to be able to scrape metrics data directly from pods.
<9> Kafka Bridge resource with metrics enabled.
<10> Metrics configuration that defines Prometheus JMX Exporter relabeling rules for Kafka Connect.
<11> Metrics configuration that defines Prometheus JMX Exporter relabeling rules for Cruise Control.
<12> Metrics configuration that defines Prometheus JMX Exporter relabeling rules for Kafka and ZooKeeper.
<13> Metrics configuration that defines Prometheus JMX Exporter relabeling rules for Kafka Mirror Maker 2.0.

//Example Prometheus metrics files
include::../../modules/metrics/ref-prometheus-metrics-config.adoc[leveloffset=+1]
//Example Prometheus alert rules
include::../../modules/metrics/ref_metrics-alertmanager-examples.adoc[leveloffset=+1]
//Example Grafana dashboards
include::../../modules/metrics/ref_metrics-dashboards.adoc[leveloffset=+1]
