-
Notifications
You must be signed in to change notification settings - Fork 15
dashboard: in-built variable for rate interval #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
DifferentialOrange
wants to merge
8
commits into
DifferentialOrange/138-default-job
from
DifferentialOrange/gh-127-default-time-range
Closed
dashboard: in-built variable for rate interval #169
DifferentialOrange
wants to merge
8
commits into
DifferentialOrange/138-default-job
from
DifferentialOrange/gh-127-default-time-range
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before this patch, datasource request target choice was based on
a datasource value. Only two possible values were supported for
a datasource: ${DS_INFLUXDB} for a templating InfluxDB datasource and
${DS_PROMETHEUS} for a templating Prometheus datasource. After this
patch, datasource type to choose a target is set with a separate
variable, so now it's possible to pass a non-templating datasource
value.
Part of #90
Remove Prometheus-related warning from "Tuples checked" panel description in case of InfluxDB dashboard.
This patch add several make targets to build a static dashboard.
```bash
make DATASOURCE=MyPrometheus JOB=MyApp \
OUTPUT_STATIC_DASHBOARD=mydashboard.json build-static-prometheus
```
Following targets are available:
- `build-static-prometheus`: Tarantool dashboard for
a Prometheus datasource;
- `build-static-tdg-prometheus`: TDG dashboard for
a Prometheus datasource;
- `build-static-influxdb`: Tarantool dashboard for
an InfluxDB datasource;
- `build-static-tdg-influxdb`: TDG dashboard for an InfluxDB datasource.
Variables for Prometheus targets:
- `DATASOURCE`: name of a Prometheus data source;
- `JOB`: name of a Prometheus job collecting your application metrics;
- `RATE_TIME_RANGE` (optional, default `2m`): rps computation rate time
range;
- `OUTPUT_STATIC_DASHBOARD` (optional, default `dashboard.json`):
compiled dashboard file.
Variables for InfluxDB targets:
- `DATASOURCE`: name of a InfluxDB data source;
- `POLICY` (optional, default `autogen`): InfluxDB metrics retention
policy;
- `MEASUREMENT`: name of a InfluxDB measurement with your application
metrics;
- `OUTPUT_STATIC_DASHBOARD` (optional, default `dashboard.json`):
compiled dashboard file.
This patch also adds tests to run these targets.
Closes #90
83ab313 to
e0b95b4
Compare
|
This variable is also do not forbid to create alerts on panels. |
Set default Prometheus job to "tarantool". After this patch, it will be possible to import dashboard with community.ansible.ansible_dashboard, if Prometheus is configured to collect Tarantool metrics with "tarantool" job. This patch also changes all examples job names to "tarantool". Part of #138
Set default InfluxDB measurement to "tarantool_http". After this patch, it will be possible to import dashboard with community.ansible.ansible_dashboard, if Telegraf is configured to collect Tarantool metrics with http plugin and "tarantool_" prefix. This patch also changes all examples measurement names to "tarantool_http". Closes #138
1bd2096 to
85cb717
Compare
e0b95b4 to
a4a61d4
Compare
In Grafana 7.2 `$__rate_interval` for Prometheus rate() metrics was introduced [1]. This patch replaces user-specified `$rate_time_range` variable with in-built `$__rate_interval`. Since `$__rate_interval` should be enough to cover all rate cases, this patch also removes all code traces of rate time range configuration. 1. https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/ Closes #127
a4a61d4 to
7890893
Compare
8094b7a to
001bbf9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merge after #173
In Grafana 7.2
$__rate_intervalfor Prometheusrate()requests was introduced. This patch replaces user-specified$rate_time_rangevariable with in-built$__rate_interval.Since
$__rate_intervalshould be enough to cover all rate cases, this patch also removes all code traces of rate time range configuration.Closes #127