Added curl
This commit is contained in:
parent
30c1dfabbf
commit
5838029f95
@ -47,10 +47,11 @@ services:
|
|||||||
# - influxdb
|
# - influxdb
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
|
# image: grafana/grafana:5.1.3
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
ports:
|
ports:
|
||||||
- "3001:3000"
|
- "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
- public
|
- public
|
||||||
- private
|
- private
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -e
|
#set -e
|
||||||
|
|
||||||
|
apk add curl
|
||||||
|
|
||||||
# ADD INFLUXDB DATASOURCE
|
# ADD INFLUXDB DATASOURCE
|
||||||
curl -s -H "Content-Type: application/json" \
|
curl -s -H "Content-Type: application/json" \
|
||||||
-XPOST http://admin:nimda321@localhost:3000/api/datasources \
|
-XPOST http://admin:nimda321@localhost:3000/api/datasources \
|
||||||
@ -9,7 +11,7 @@ curl -s -H "Content-Type: application/json" \
|
|||||||
"name": "influxdb",
|
"name": "influxdb",
|
||||||
"type": "influxdb",
|
"type": "influxdb",
|
||||||
"access": "proxy",
|
"access": "proxy",
|
||||||
"url": "http://influxdb:8086",
|
"url": "http://influxdb2:8086",
|
||||||
"database": "telegraf",
|
"database": "telegraf",
|
||||||
"user":"telegraf",
|
"user":"telegraf",
|
||||||
"password":"nimda321",
|
"password":"nimda321",
|
||||||
|
@ -169,4 +169,5 @@ ignore_fs = ["tmpfs", "devtmpfs"]
|
|||||||
|
|
||||||
[[inputs.x509_cert]]
|
[[inputs.x509_cert]]
|
||||||
## List certificate sources
|
## List certificate sources
|
||||||
|
sources = ["https://www.dataport.de:443", "https://mail.unixweb.de:443", "https://chat.socialnetwork24.com:443", "https://cloud.unixweb.net:443", "https://blog.unixweb.de:443", "https://video.openws.de:443"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user