Hello,
I use telegraf to scrape an external cluster and send back data to another telegraf scrape by prometheus (data_fromat set to prometheus in HTTP modules).
Something like that:
INTERNET
│
┌──────────────────┐ │
│ │
│ PROMETHEUS │
│ │ │
└────────┬─────────┘ │
│
│
│ │
│ │
│
▼
┌────────────────┐ │ ┌────────────────┐ ┌───────────────────┐
│ │ HTTP listener v2 │ │ │ INPUT PROMETHEUS │ │
│ TELEGRAF 2 │◄───────────────────────┴───────────────────┤ TELEGRAF1 │ ─────────────────────► │ PODS │
│ │ HTTP OUTPUT │ │ │ │
└────────────────┘ │ └────────────────┘ └───────────────────┘
│
│
│
│
│
Everything is working great, but I was wondering if there is a better way.
Moreover, metrics get in TELEGRAF 2
avec prefix by prometheus
so maybe there is a way to do not have this prefix.
Best
Bastien