Interaction with Prometheus Server #559
Replies: 3 comments
-
Current Prometheus exporter implementation collects the metric data in format expected by Prometheus server, but doesn't really do any export. Export functionality is not present for now. Also, as the current metrics spec is experimental, these changes are not planned as of now. |
Beta Was this translation helpful? Give feedback.
-
Thanks for you input. Now let me share the output..we have
HELP net_conntrack_dialer_conn_established_total Total number of connections successfully established by the given dialer a given name.TYPE net_conntrack_dialer_conn_established_total counternet_conntrack_dialer_conn_established_total{dialer_name="default"} 0 HELP net_conntrack_dialer_conn_failed_total Total number of connections failed to dial by the dialer a given name.TYPE net_conntrack_dialer_conn_failed_total counternet_conntrack_dialer_conn_failed_total{dialer_name="default",reason="refused"} 0 |
Beta Was this translation helpful? Give feedback.
-
We have added a new PrometheusExporter class like below :- class PrometheusExporter //: public metric_sdk::MetricsExporter private: And Export() method is added like below :- } And from our main() method we called Export() method below int main() std::vectorcollection; Record record = get_record(arr[0],1,arr[2], aggregator);
But we are not able to see those metric details in the metric page of Prometheus server. Our Prometheus server is running in http://localhost:9090/ and Prometheus Exporter is running in http://localhost:5050 Our metric data should start with "test_" as in get_record(..) method it is concatenated with "test_". Please suggest why we are not able to see our metric data in Prometheus/metric page. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What kind of change we have to do to hit Prometheus server from Exporter ???
Like code change , config change , address & port setting etc
Any sample code or GitHub reference will be very helpful.
Awaiting for quick response........
Thanks in advanced.
Beta Was this translation helpful? Give feedback.
All reactions