Comment on page
StackState Self-hosted v4.6.x
The Static Health integration is used to visualize static health information in StackState by reading from CSV files. The health consists of check states.
To set up the Static Health integration you will need to have:
To configure the StackState Agent to read CSV health files:
- 1.Edit the Agent integration configuration file
/etc/stackstate-agent/conf.d/static_health.d/conf.yamlto include the following details:
- type - set to
csvfor parsing CSV typed files.
- health_file - the absolute path to the CSV file containing health state information.
- delimiter - the delimiter used in the CSV file.init_config:instances:- type: csvhealth_file: /path/to/health.csvdelimiter: ';'
collection_intervalwill be used as the
repeat_intervalfor the health synchronization. Make sure that the value set for the the
collection_intervalmatches the time that the check will take to run.
Static health is read from a CSV file with a header row, that specifies the fields that are included in the file. The available fields are listed in the table below.
Example health CSV file
check_1,Example check,critical,urn:component/some_component,Something went wrong
check_2,Another example check,clear,urn:component/some_component,This is going well