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

Latest commit

 

History

History

local-tests

docker-abap-metrics-provider-tester

For testing metrics from a sap-netweaver in a setup with InfluxDB/Telegraf or Prometheus and Grafana.

start

docker-compose -f docker-compose-influxdb.yml up docker-compose -f docker-compose-prometheus.yml up

influxdb utils

curl -G http://localhost:8086/query?pretty=true --data-urlencode "db=glances" --data-urlencode "q=SHOW DATABASES"

curl -XPOST 'http://localhost:8086/query' --data-urlencode 'q=CREATE DATABASE influxdb'

curl -G http://localhost:8086/query?pretty=true --data-urlencode "db=influxdb" --data-urlencode "q=SHOW MEASUREMENTS"

curl -G 'http://localhost:8086/query' --data-urlencode 'q=select * from influxdb..http'

curl -G 'http://localhost:8086/query' --data-urlencode 'q=select shortdumps_number_of_shortdumps from influxdb..http where time > now() - 1m' | jq .

curl -XPOST 'http://localhost:8086/query' --data-urlencode "db=influxdb" --data-urlencode "q=drop series from http"

telegraf utils

telegraf --config telegraf.conf --test

docker run --rm telegraf telegraf config > telegraf_template.conf

username/password for telegraf input plugins

The username/password will be passed via enviroment variables and docker to telegraf.conv.

export username=<<username>>
export password=<<password>>

prometheus set up

Replace placeholder marked with <...> inside prometheus.yml.

based on

https://github.com/bcremer/docker-telegraf-influx-grafana-stack

https://github.com/nicolargo/docker-influxdb-grafana