add grafana dashboard

This commit is contained in:
Martin Ptáček
2023-07-30 21:02:38 +02:00
parent 3232b026df
commit b8fa85d3a0
3 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,7 @@ opening the app and hitting "Start" button.
- Folder `local` contains simple docker-compose.yaml files to spin up prometheus database on localhost - Folder `local` contains simple docker-compose.yaml files to spin up prometheus database on localhost
quickly for testing purposes with desired configuration. quickly for testing purposes with desired configuration.
- Configuration options for the YAML file are described in `config_file_structure.yaml`. - Configuration options for the YAML file are described in `config_file_structure.yaml`.
- Grafana dashboard as an exported json is present in file `grafana_dashboard.json`.
## Some helpful information for development ## Some helpful information for development

View File

@ -33,7 +33,7 @@ internal class LastTimeRingBuffer(private val scrapeInterval: Int) {
companion object { companion object {
private const val hysteresisMemory: Int = 3 private const val hysteresisMemory: Int = 3
private const val hysteresisCoefficient: Double = 1.2 private const val hysteresisCoefficient: Double = 1.2
private const val scrapeTimeCoefficient: Double = 2.2 private const val scrapeTimeCoefficient: Double = 1.7
} }
fun setLastTime(timestamp: Long) { fun setLastTime(timestamp: Long) {

1
grafana_dashboard.json Normal file

File diff suppressed because one or more lines are too long