Ошибка чтения prometheusetheus: bad_response: readObjectStart: ожидаем { или n, но найдено #Python

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Ошибка чтения prometheusetheus: bad_response: readObjectStart: ожидаем { или n, но найдено #

Сообщение Anonymous »

У меня есть сервер Prometheus, работающий по адресу http://localhost:8001/: если я просматриваю браузер, он показывает следующее:

Код: Выделить всё

# 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
Однако, когда я пытаюсь настроить ту же конечную точку в Grafana, что и источник данных Prometheus, я получаю следующую ошибку:

Код: Выделить всё

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|...
Все остальные настройки в Grafana () используются по умолчанию.
Есть идеи, что я здесь делаю не так?

Подробнее здесь: https://stackoverflow.com/questions/731 ... ct-or-n-bu
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»