Hi,
I am not able to debug this, how do I find out more information about what
FILE_SIZE is doing? I couldn't really see much information in the
documentation about this.
On the metric endpoint at localhost:8000, I can see that UPLOAD_SIZE has
been initialised but it is not populated with any figures and it is
commented out. So at least the http server is running. Any suggestions to
pinpoint to the issue?
## File 1
from prometheus_client import Counter, Histogram
FILE_SIZE = Counter(
"filesize_success_bytes",
"The total volume up successful filesize in bytes",
labelnames=["type", "sub_type"],
)
def metric_log(
x, sub_type, file_size, a
):
FILE_SIZE .labels(
type=type, sub_type=sub_type
).inc(file_size)
# File 2
start_http_server(8000)
while True:
metric_log(x, y, z, a)
--
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/ee64e05d-1a38-4aec-8c0c-25c0f4d3bcc8n%40googlegroups.com.