For testing metrics from a sap-netweaver in a setup with InfluxDB/Telegraf or Prometheus and Grafana.
docker-compose -f docker-compose-influxdb.yml up docker-compose -f docker-compose-prometheus.yml up
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 --config telegraf.conf --test
docker run --rm telegraf telegraf config > telegraf_template.conf
The username/password will be passed via enviroment variables and docker to telegraf.conv.
export username=<<username>>
export password=<<password>>
Replace placeholder marked with <...> inside prometheus.yml.
https://github.com/bcremer/docker-telegraf-influx-grafana-stack