m-lab / prometheus-nagios-exporter

Prometheus exporter publishes Nagios service status read from the mk-livestatus plugin
Apache License 2.0
23 stars 12 forks source link

promtool output #11

Open mjtrangoni opened 7 years ago

mjtrangoni commented 7 years ago

Hi @stephen-soltesz,

I am testing your exporter, and realized that you are not using the Prometheus client_python library. I think this would be much better for this exporter. I am also missing the initial page pointing to /metrics like the other exporters do.

By the way here is the output of promtool,

$ curl http://localhost:9267/metrics | promtool check-metrics
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1646  100  1646    0     0   243k      0 --:--:-- --:--:-- --:--:--  267k
nagios_accept_passive_host_checks: no help text
nagios_accept_passive_service_checks: no help text
nagios_cached_log_messages: no help text
nagios_check_external_commands: no help text
nagios_check_host_freshness: no help text
nagios_check_service_freshness: no help text
nagios_connections: no help text
nagios_connections_rate: no help text
nagios_enable_event_handlers: no help text
nagios_enable_flap_detection: no help text
nagios_enable_notifications: no help text
nagios_execute_host_checks: no help text
nagios_execute_service_checks: no help text
nagios_exporter_success: no help text
nagios_external_command_buffer_max: no help text
nagios_external_command_buffer_slots: no help text
nagios_external_command_buffer_usage: no help text
nagios_external_commands: no help text
nagios_external_commands_rate: no help text
nagios_forks: no help text
nagios_forks_rate: no help text
nagios_host_checks: no help text
nagios_host_checks_rate: no help text
nagios_interval_length: no help text
nagios_last_command_check: no help text
nagios_last_log_rotation: no help text
nagios_livecheck_overflows: no help text
nagios_livecheck_overflows_rate: no help text
nagios_livechecks: no help text
nagios_livechecks_rate: no help text
nagios_livestatus_active_connections: no help text
nagios_livestatus_available: no help text
nagios_livestatus_queued_connections: no help text
nagios_livestatus_threads: no help text
nagios_livestatus_version: no help text
nagios_log_messages: no help text
nagios_log_messages_rate: no help text
nagios_mk_inventory_last: no help text
nagios_nagios_pid: no help text
nagios_neb_callbacks: no help text
nagios_neb_callbacks_rate: no help text
nagios_num_hosts: no help text
nagios_num_services: no help text
nagios_obsess_over_hosts: no help text
nagios_obsess_over_services: no help text
nagios_process_performance_data: no help text
nagios_program_start: no help text
nagios_program_version: no help text
nagios_requests: no help text
nagios_requests_rate: no help text
nagios_service_checks: no help text
nagios_service_checks_rate: no help text

Thanks!

mjtrangoni commented 7 years ago

Hi @stephen-soltesz ,

I found the help text here.

Another thing I realized is that the rate metrics are not necessary. You can graph them with Grafana easier directly from counter, choosing the interval that better suits to you. For example, rate(nagios_forks{instance="[[nagios_instance]]"}[$interval])