Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Use seconds in haproxy_check_duration_seconds as unit #183

Merged
merged 1 commit into from Jun 2, 2020

Conversation

grobie
Copy link
Member

@grobie grobie commented Jun 2, 2020

According to Prometheus best practices, metrics should be using base
units. Times should be exported in seconds, the check duration metric is
the only outlier here.

With this change, all tested metrics adhere to the guidelines:

for file in test/*.metrics; do
  promtool check metrics < $file
done

@grobie grobie requested a review from SuperQ June 2, 2020 17:30
According to Prometheus best practices, metrics should be using base
units. Times should be exported in seconds, the check duration metric is
the only outlier here.

With this change, all tested metrics adhere to the guidelines:

    for file in test/*.metrics; do
      promtool check metrics < $file
    done

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grobie grobie merged commit ead841a into master Jun 2, 2020
@grobie grobie deleted the grobie/seconds-unit branch June 2, 2020 18:23
grobie added a commit that referenced this pull request Jun 21, 2020
* [CHANGE] Switch logging to go-kit #171
* [CHANGE] Fix metric types #182
* [CHANGE] Fix unit of time metric #183
* [FEATURE] Add filtering on server status #160
* [ENHANCEMENT] Add compression and server selection metrics #154
* [ENHANCEMENT] Add client/server abort metrics #167
* [ENHANCEMENT] Add version info metric (when using UNIX sockets) #180

Note: This release fixes the metric types of counters and renames the following metrics:

* `haproxy_exporter_csv_parse_failures` -> `haproxy_exporter_csv_parse_failures_total`
* `haproxy_exporter_total_scrapes` -> `haproxy_exporter_scrapes_total`
* `haproxy_server_check_duration_milliseconds` -> `haproxy_server_check_duration_seconds`

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>
grobie added a commit that referenced this pull request Jun 21, 2020
* [CHANGE] Switch logging to go-kit #171
* [CHANGE] Fix metric types #182
* [CHANGE] Fix unit of time metric #183
* [FEATURE] Add filtering on server status #160
* [ENHANCEMENT] Add compression and server selection metrics #154
* [ENHANCEMENT] Add client/server abort metrics #167
* [ENHANCEMENT] Add version info metric (when using UNIX sockets) #180

Note: This release fixes the metric types of counters and renames the following metrics:

* `haproxy_exporter_csv_parse_failures` -> `haproxy_exporter_csv_parse_failures_total`
* `haproxy_exporter_total_scrapes` -> `haproxy_exporter_scrapes_total`
* `haproxy_server_check_duration_milliseconds` -> `haproxy_server_check_duration_seconds`

Signed-off-by: Tobias Schmidt <tobidt@gmail.com>

Co-authored-by: Tobias Schmidt <tobidt@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants