Hey,

I am using JMXCollector 
<https://github.com/prometheus/jmx_exporter/blob/main/collector/src/main/java/io/prometheus/jmx/JmxCollector.java>
 
to fetch metrics and writing it into a file using the TextFormat 
<https://github.com/prometheus/client_java/blob/98967b8367216f4107ad5621f260ed895c930262/simpleclient_common/src/main/java/io/prometheus/client/exporter/common/TextFormat.java#L66C27-L66C27>
 and 
the format looks like the sample below.

# HELP kafka_server_socket_server_metrics_processor_queue_size_p99 
 
kafka.server:name=null,type=socket-server-metrics,attribute=processor-queue-size-p99
# TYPE kafka_server_socket_server_metrics_processor_queue_size_p99 untyped
kafka_server_socket_server_metrics_processor_queue_size_p99{listener="PLAINTEXT",}
 
0.0

I have two questions. 
1. How do I load this file into Prometheus or grafana to visualise the 
metrics?
2. The metrics do not have the time stamp in them at the end. How do I get 
the timestamp?

Thanks in advance!


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f13c53be-7ca4-429c-b208-9c78d10a2f14n%40googlegroups.com.

Reply via email to