[prometheus-users] Why does the federate endpoint return all metrics as untyped?

2022-12-17 Thread
prometheus federate api

# TYPE hermes_req_proc_time untyped
hermes_req_proc_time{statsdtype="timers",gs_app="someapp",job="aggregator_10s",instance="
172.24.0.7:9080",gs_dc="us-east-1",gs_svcuser="svcuser2",gs_statistics="lower",gs_service="hermes",gs_hostname="someapp-01",gs_env="dev",gs_instanceid="8ef31bcd",id="prom-1"}
 
156 1473292292860
# TYPE netdev untyped
netdev{dev="eth0",gs_svcuser="svcuser2",gs_env="dev",gs_instanceid="aabd3924",type="byteout",instance="container-metrics:9092",gs_dc="us-east-1",job="promclient_triton_5s",id="prom-1"}
 
2.198199005e+09 1473292299525
# TYPE hermes_req_proc_time untyped
hermes_req_proc_time{gs_dc="us-east-1",job="aggregator_10s",gs_statistics="sum",gs_service="hermes",gs_instanceid="8ef31bcd",gs_svcuser="svcuser2",statsdtype="timers",gs_env="dev",instance="
172.24.0.7:9080",gs_app="someapp",gs_hostname="someapp-01",id="prom-1"} 
6778 1473292292860


How does upper Prometheus in the Prometheus federated cluster know what 
kind of Metrics they are getting from the federate interface of lower 
Prometheus?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c398da36-8d31-480f-b0b3-c587ffd54801n%40googlegroups.com.


[prometheus-users] Why does the federate endpoint return all metrics as untyped?

2022-12-17 Thread
curl http://127.0.0.1:9090/federate?match[]={job!=""}
output:
# TYPE scrape_duration_seconds untyped 
scrape_duration_seconds{instance="172.31.24.196:18080",job="rs"} 
0.000687693 1671095235507 # TYPE scrape_samples_post_metric_relabeling 
untyped 
scrape_samples_post_metric_relabeling{instance="172.31.24.196:18080",job="rs"} 
0 1671095235507 # TYPE scrape_samples_scraped untyped 
scrape_samples_scraped{instance="172.31.24.196:18080",job="rs"} 0 
1671095235507 # TYPE scrape_series_added untyped 
scrape_series_added{instance="172.31.24.196:18080",job="rs"} 0 
1671095235507 # TYPE up untyped up{instance="172.31.24.196:18080",job="rs"} 
0 1671095235507

How does upper Prometheus in the Prometheus federated cluster know what 
kind of Metrics they are getting from the federate interface of lower 
Prometheus?



-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/7dafc047-aaf7-4c78-b1c0-c19c164f2145n%40googlegroups.com.