Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable metrics #35

Merged
merged 9 commits into from
Jun 30, 2023
Merged

Configurable metrics #35

merged 9 commits into from
Jun 30, 2023

Conversation

kpetremann
Copy link
Owner

@kpetremann kpetremann commented Jun 30, 2023

each metrics can now be enabled/disabled.

Some can be filtered or customized.

Example of configuration:

metrics:
  global:
    filters:
      ignore-test: false
      ignore-mock: false

  salt_new_job_total:
    enabled: true

  salt_expected_responses_total:
    enabled: true

  salt_function_responses_total:
    enabled: true
    add-minion-label: false  # not recommended in production

  salt_scheduled_job_return_total:
    enabled: true
    add-minion-label: false  # not recommended in production

  salt_responses_total:
    enabled: true

  salt_function_status:
    enabled: true
    filters:
      functions:
        - "state.highstate"
      states:
        - "highstate"

Note: It deprecated -health-minions, health-functions-filter and health-states-filter flags. They should be replaced by configuring metrics in the config.yml file.

Implements: #26

The goal is to be able to enable or disable any metric we want
independently.

Some metrics can be disabled for cardinality scaling.
This is now replaced by enable/disable metric feature.
Add-minions permits to add the minion flag in some metrics.
The goal is to provide even more data for people who needs them,
especially for troubleshoot or small infra.

This is not recommended for production with large scale.
@kpetremann kpetremann merged commit 351ed1c into main Jun 30, 2023
@kpetremann kpetremann deleted the configurable_metrics branch June 30, 2023 16:21
@kpetremann kpetremann restored the configurable_metrics branch June 30, 2023 16:21
@kpetremann kpetremann deleted the configurable_metrics branch June 30, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant