You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm write a prometheus-endpoint on IoT device and prometheus throw a error to read data's from endpoint by is ending of \r and i'm found nothing options to replace or regex this on reading data from endpoint.
The original data is:
iot_sensor{date="8:54:15",sensor=0} 25.88
iot_sensor{date="8:54:15",sensor=1} 21.00
The syntax on sensor-outputs "ok" on prometheus-endpoint. I hop to ignore line ending types and read data's, but coding on a C-dialect and using default print-function to output data's.
What did you see instead? Under which circumstances?
Enable ignore line-endings or replace option to allowed inputs.
System information
No response
Prometheus version
No response
Prometheus configuration file
global:
scrape_interval: 15s# By default, scrape targets every 15 seconds.evaluation_interval: 15s# By default, scrape targets every 15 seconds.external_labels:
monitor: 'my-project'rule_files:
- 'alert.rules'# - "first.rules"# - "second.rules"# alertalerting:
alertmanagers:
- scheme: httpstatic_configs:
- targets:
- "alertmanager:9093"# A scrape configuration containing exactly one endpoint to scrape:# Here it's Prometheus itself.scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'scrape_interval: 5sstatic_configs:
- targets: ['localhost:9090']
- job_name: 'cadvisor'scrape_interval: 5sdns_sd_configs:
- names:
- 'tasks.cadvisor'type: 'A'port: 8080
- job_name: 'node-exporter'scrape_interval: 5sdns_sd_configs:
- names:
- 'tasks.node-exporter'type: 'A'port: 9100
- job_name: 'iot-sensor'scrape_interval: 15sdns_sd_configs:
- names:
- 'tasks.iot-exporter'type: 'A'port: 29001
Alertmanager version
ALERTMANAGER_IMAGE_VERSION=latest
alertmanager:
image: prom/alertmanager:${ALERTMANAGER_IMAGE_VERSION:-latest}
Version Information
Branch: HEAD
BuildDate: 20240228-11:51:20
BuildUser: root@22cd11f671e9
GoVersion: go1.21.7
Revision: 0aa3c2aad14cff039931923ab16b26b7481783b5
Version: 0.27.0
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
What did you do?
I'm write a prometheus-endpoint on IoT device and prometheus throw a error to read data's from endpoint by is ending of
\r
and i'm found nothing options to replace or regex this on reading data from endpoint.The original data is:
iot_sensor{date="8:54:15",sensor=0} 25.88
iot_sensor{date="8:54:15",sensor=1} 21.00
Bug-Report on Prometheus:
What did you expect to see?
The syntax on sensor-outputs "ok" on prometheus-endpoint. I hop to ignore line ending types and read data's, but coding on a C-dialect and using default print-function to output data's.
What did you see instead? Under which circumstances?
Enable ignore line-endings or replace option to allowed inputs.
System information
No response
Prometheus version
No response
Prometheus configuration file
Alertmanager version
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered: