Breaking Changes
- Rename all command-line flags. See Command-Line Flags in the readme for all available command-line flags.
- Remove
tls,bearerAuthandbasicAuthoptions from configuration file. Instead we are now using the Prometheus Exporter Toolkit, where these options can be configured via the configuration file set via the--web.config.filecommand-line flag. - Remove
discoveryoptions from configuration file. Instead the--discovery.host,--discovery.portand--discovery.schemecommand-line flags can be used. - Remove
scripts_configsoptions from configuration file. Instead the--config.filescommand-line flag accepts a glob pattern to use multiple configuration files. - Remove
prefixparameter andprefixoption from the script discovery configuration. The metrics can't be prefixed anymore. - Remove
outputparameter andignoreOutputOnFailoption from script configuration. Instead theoutputoption in the script configuration can now be used. - Remove
scriptoption from script configuration. Insteadcommandshould be used. - Change the type of the
commandscript configuration from a single string to a list of strings, so that is more similar to how the command can be configured in Kubernetes. - Add new
cacheoption to script configuration and removecacheDurationanduseExpiredCacheOnErroroptions. - Rename
allowEnvOverwriteoption in the script configuration toallow_env_overwrite - Rework parsing of the output of a script. Instead of using our own regular expression we are now using github.com/prometheus/common/expfmt to only export valid Prometheus metrics from the output of a script.
- Change metrics exported via the
/metricsendpoint. We now export the following metrics:script_exporter_script_unknown_totalscript_exporter_http_requests_inflightscript_exporter_http_requests_totalscript_exporter_http_request_duration_secondsscript_exporter_config_last_reload_successfulscript_exporter_config_last_reload_success_timestamp_seconds
- Remove
script_use_cacheandscript_use_expired_cachefrom the exported script metrics. Addscript_cachedwhich indicates if the script result was returned from the cache or not. - Remove Docker image from DockerHub. The Docker image is now only available via the GitHub Container Registry at https://github.com/ricoberger/script_exporter/pkgs/container/script_exporter.
- Rework test setup and example scripts. The exporter can now be tested via
docker compose -f docker-compose.yaml up --build --force-recreate. - Rework CI/CD pipelines.
- Rework Windows service support.
Changed
- #195: ⚠️ Breaking change: ⚠️ Update Helm Chart for v3 @ricoberger
- #194: Bump golang.org/x/net from 0.34.0 to 0.36.0 @dependabot[bot]
- #181: Bump the gomod group across 1 directory with 3 updates @dependabot[bot]
- #193: ⚠️ Breaking change: ⚠️ Rework v3 @ricoberger