Bharat786 commented on issue #8174: URL: https://github.com/apache/trafficserver/issues/8174#issuecomment-886569854
Thanks for the help, But when i am starting the exporter, it is giving metrics at port 9122 but its logs are also showing ```` DEBUG:trafficserver_exporter.collector:Metric trafficserver_transactions_total value proxy.node.http.origin_server_total_transactions_count not found DEBUG:trafficserver_exporter.collector:Metric trafficserver_transactions_total value proxy.node.http.user_agents_total_transactions_count not found DEBUG:trafficserver_exporter.collector:Collection complete WARNING:trafficserver_exporter.trafficserver_exporter:Unable to read pidfile; process metrics will fail! ```` and when I am specifying the pid file while starting the exporter like ./prometheus-trafficserver-exporter -vv --endpoint=http://ip/_stats --pidfile /usr/local/var/trafficserver/server.lock it is showing this error ```` DEBUG:trafficserver_exporter.collector:Gathering metrics DEBUG:trafficserver_exporter.collector:Metric trafficserver_transactions_total value proxy.node.http.origin_server_total_transactions_count not found DEBUG:trafficserver_exporter.collector:Metric trafficserver_transactions_total value proxy.node.http.user_agents_total_transactions_count not found DEBUG:trafficserver_exporter.collector:Collection complete DEBUG:trafficserver_exporter.trafficserver_exporter:Registering ProcessCollector Traceback (most recent call last): File "./prometheus-trafficserver-exporter", line 11, in <module> load_entry_point('trafficserver-exporter==0.3.2', 'console_scripts', 'trafficserver_exporter')() File "/usr/lib/python3/dist-packages/trafficserver_exporter/trafficserver_exporter.py", line 126, in main pid=lambda: get_ts_pid(args.pidfile), namespace="trafficserver" File "/usr/lib/python3/dist-packages/prometheus_client/registry.py", line 29, in register duplicates)) ValueError: Duplicated timeseries in CollectorRegistry: {'trafficserver_process_cpu_seconds_total', 'trafficserver_process_open_fds', 'trafficserver_process_resident_memory_bytes', 'trafficserver_process_start_time_seconds', 'trafficserver_process_cpu_seconds_created', 'trafficserver_process_virtual_memory_bytes', 'trafficserver_process_max_fds'} ```` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
