# Otel Collector for TiDB Cloud

Dataflow diagram between components (freshness 2022-Feb-11):

```text
         +----------+                           +---------------+                           +-----------+
         |          |  machine capacity metrics |               | machine capacity metrics  |           |
         | metadb   +-------------------------->|  thanos query +-------------------------->| datadog   |
         | receiver |  (also as control msgs)   |  processor    | cluster metrics           | exporter  |
         |          |                           |               |                           |           |
         +----------+                           +---------------+                           +-----------+
    periodically query metadb         enrich machine metrics with cluster metrics
and fire metrics to down-stream              (via querying against thanos)
```

