Pokud by to nekdo chtel resit pres telegraf, tak tam bude konfigurace vypadat nejak takto:
[[inputs.http]] name_override = "CNB Exchange Rate" urls = [ "https://www.cnb.cz/en/financial-markets/foreign-exchange-market/central-bank-exchange-rate-fixing/central-bank-exchange-rate-fixing/daily.txt" ] data_format = "csv" csv_header_row_count = 1 interval = 3600 csv_delimiter = "|" csv_skip_rows = 1 csv_tag_columns = ["Country","Currency","Amount","Code"] tagexclude = ["url"]
Takto telegraf pouzivam v praci.
Este si mohol pridat prometheus output plugin sekciu.
https://github.com/influxdata/telegraf/blob/release-1.27/plugins/outputs/prometheus_client/README.md
Davam kurzy do InfluxDB, takze konfiguraci pro prometheus nevladnu. Ale samozrejme se to da libovolne dal rozvijet.
Jeste me napadlo, ze by nekdo mohl premyslet proc je tam radek
tagexclude = ["url"]
je to protoze to URL je celkem dlouhe a neni nijak zajimave, tak aby nasbirana data nezabirala tolik mista.