Skip to content
Snippets Groups Projects
Commit 780a6bee authored by František Řezníček's avatar František Řezníček
Browse files

Update CHANGELOG.md, src/metric-generators/dockermon.sh files

parent 0a249370
No related branches found
No related tags found
No related merge requests found
Pipeline #93125 passed
......@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.0.2] - 2021-06-30
### Fixed
- dockermon textfile metrics documentation string now correctly prefixed with `# `
## [1.0.1] - 2021-06-30
### Changed
- change default output metric directory (singular->plural)
......
......@@ -26,8 +26,8 @@ for i_container in ${CONTAINERS}; do
CONTAINER_RESTART_COUNTS+=("${i_container_restart_count}")
done
printf 'HELP %s Number of container restarts.\n' "${METRIC_NAME}"
printf 'TYPE %s counter\n' "${METRIC_NAME}"
printf '# HELP %s Number of container restarts.\n' "${METRIC_NAME}"
printf '# TYPE %s counter\n' "${METRIC_NAME}"
for ((indx=0; indx<${#CONTAINER_IDS[*]}; indx++)); do
printf '%s{id="%s",name="%s"} %d\n' "${METRIC_NAME}" "${CONTAINER_IDS[${indx}]}" \
"${CONTAINER_NAMES[${indx}]}" "${CONTAINER_RESTART_COUNTS[${indx}]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment