Skip to content

Commit

Permalink
Merge pull request #30 from portefaix/feat/loki-promtail-2.2.0
Browse files Browse the repository at this point in the history
Loki and Promtail to v2.2.0
  • Loading branch information
nlamirault committed Mar 13, 2021
2 parents 0c91753 + 0258925 commit 3046aa2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/loki-mixin/Chart.yaml
Expand Up @@ -28,12 +28,12 @@ keywords:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 2.1.0
appVersion: 2.2.0

maintainers:
- name: nlamirault
Expand Down
2 changes: 1 addition & 1 deletion charts/loki-mixin/README.md
@@ -1,6 +1,6 @@
# loki-mixin

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.0](https://img.shields.io/badge/AppVersion-2.1.0-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square)

A Helm chart for loki Mixin

Expand Down
4 changes: 2 additions & 2 deletions charts/promtail-mixin/Chart.yaml
Expand Up @@ -28,12 +28,12 @@ keywords:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 2.1.0
appVersion: 2.2.0

maintainers:
- name: nlamirault
Expand Down
2 changes: 1 addition & 1 deletion charts/promtail-mixin/README.md
@@ -1,6 +1,6 @@
# promtail-mixin

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.0](https://img.shields.io/badge/AppVersion-2.1.0-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square)

A Helm chart for Promtail Mixin

Expand Down
12 changes: 12 additions & 0 deletions charts/promtail-mixin/templates/rules.yaml
Expand Up @@ -17,6 +17,18 @@ spec:
groups:
- name: promtail_rules
rules:
- expr: histogram_quantile(0.99, sum(rate(promtail_request_duration_seconds_bucket[1m])) by (le, job))
record: job:promtail_request_duration_seconds:99quantile
- expr: histogram_quantile(0.50, sum(rate(promtail_request_duration_seconds_bucket[1m])) by (le, job))
record: job:promtail_request_duration_seconds:50quantile
- expr: sum(rate(promtail_request_duration_seconds_sum[1m])) by (job) / sum(rate(promtail_request_duration_seconds_count[1m])) by (job)
record: job:promtail_request_duration_seconds:avg
- expr: sum(rate(promtail_request_duration_seconds_bucket[1m])) by (le, job)
record: job:promtail_request_duration_seconds_bucket:sum_rate
- expr: sum(rate(promtail_request_duration_seconds_sum[1m])) by (job)
record: job:promtail_request_duration_seconds_sum:sum_rate
- expr: sum(rate(promtail_request_duration_seconds_count[1m])) by (job)
record: job:promtail_request_duration_seconds_count:sum_rate
- expr: histogram_quantile(0.99, sum(rate(promtail_request_duration_seconds_bucket[1m])) by (le, job, namespace))
record: job_namespace:promtail_request_duration_seconds:99quantile
- expr: histogram_quantile(0.50, sum(rate(promtail_request_duration_seconds_bucket[1m])) by (le, job, namespace))
Expand Down
2 changes: 1 addition & 1 deletion hack/mixins.py
Expand Up @@ -26,7 +26,7 @@
import requests


MIXINS_VERSION = "v0.2.0"
MIXINS_VERSION = "v0.3.0"
MIXIN_ARCHIVE = "monitoring-mixins-%s.zip" % MIXINS_VERSION
MIXIN_URL = (
"https://github.com/nlamirault/monitoring-mixins/releases/download/%s/%s"
Expand Down

0 comments on commit 3046aa2

Please sign in to comment.