I have prometheus server running at http://localhost:8001/
: which if i browse through browser shows this:
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 403.0
python_gc_objects_collected_total{generation="1"} 0.0
python_gc_objects_collected_total{generation="2"} 0.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 39.0
python_gc_collections_total{generation="1"} 3.0
python_gc_collections_total{generation="2"} 0.0
# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="10",patchlevel="4",version="3.10.4"} 1.0
# HELP myorg_diskmetric_sizeInBytes Gets the size of the disk in bytes.
# TYPE myorg_diskmetric_sizeInBytes gauge
# HELP myorg_diskmetric_maxSizeInMegabytes Gets or sets the maximum size of the disk in megabytes, which is the size of memory allocated for the disk.
# TYPE myorg_diskmetric_maxSizeInMegabytes gauge
# HELP myorg_m_count Count of ping failures through count.
# TYPE myorg_m_count gauge
However, when i try to configure the same endpoint in Grafana as prometheus datasource i get following error:
Error reading prometheusetheus: bad_response: readObjectStart: expect { or n, but found #, error found in #1 byte of ...|# HELP pyth|..., bigger context ...|# HELP python_gc_objects_collected_total Objects co|...
All other settings in Grafana (v.9.0.5
) are defaults.
Any idea what am i doing wrong here?