Skip to content

v3.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Apr 19:37
73f27dc

Breaking Changes

  • Rename all command-line flags. See Command-Line Flags in the readme for all available command-line flags.
  • Remove tls, bearerAuth and basicAuth options 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.file command-line flag.
  • Remove discovery options from configuration file. Instead the --discovery.host, --discovery.port and --discovery.scheme command-line flags can be used.
  • Remove scripts_configs options from configuration file. Instead the --config.files command-line flag accepts a glob pattern to use multiple configuration files.
  • Remove prefix parameter and prefix option from the script discovery configuration. The metrics can't be prefixed anymore.
  • Remove output parameter and ignoreOutputOnFail option from script configuration. Instead the output option in the script configuration can now be used.
  • Remove script option from script configuration. Instead command should be used.
  • Change the type of the command script 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 cache option to script configuration and remove cacheDuration and useExpiredCacheOnError options.
  • Rename allowEnvOverwrite option in the script configuration to allow_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 /metrics endpoint. We now export the following metrics:
    • script_exporter_script_unknown_total
    • script_exporter_http_requests_inflight
    • script_exporter_http_requests_total
    • script_exporter_http_request_duration_seconds
    • script_exporter_config_last_reload_successful
    • script_exporter_config_last_reload_success_timestamp_seconds
  • Remove script_use_cache and script_use_expired_cache from the exported script metrics. Add script_cached which 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