Skip to content

[FEATURE REQUEST] Expose metrics via an engine #16

@nicholasmhughes

Description

@nicholasmhughes

Ported from saltstack/salt#49939

Describe the solution you'd like
Prometheus is quickly becoming de-facto for monitoring and alerting. The model of pull instead of push would fit well in the salt-master/salt-minion topology. Exposing metrics in salt-minion and salt-master would allow more flexibility in monitoring large salt environments.

Metrics suggested by @gnalsa

salt_minion_last_run_epoch
salt_minion_last_run_state_completion_time
salt_minion_last_run_state_executed
salt_minion_last_run_state_error
salt_minion_last_run_state_success

Metrics suggested by @justindesilets

salt_master_keys{key_state="accepted"}
salt_master_gitfs_lock
salt_master_number_of_scheduled_jobs
salt_master_number_of_threads
salt_master_number_of_jobs_active
salt_master_number_of_minions_return
salt_master_running_process
salt_syndic_running_process
salt_syndic_master_sync

Describe alternatives you've considered
https://github.com/BonnierNews/saltstack_exporter
rebuttal: saltstack/salt#49939 (comment)

Additional context
An internal project is in process to provide this functionality, and should be upstreamed soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions