|
|
@ -1,8 +1,13 @@ |
|
|
|
#!/bin/sh |
|
|
|
#http://<IP-адрес сервера pushgateway>:9091/metrics/job/<Тег для job>/instance/<Тег для instance> |
|
|
|
#*/1 * * * * /bin/sh /services/NodeExporterRelay/pushgateway/check.sh |
|
|
|
BASIC_U= |
|
|
|
BASIC_P= |
|
|
|
JOB= |
|
|
|
INSTANCE= |
|
|
|
|
|
|
|
SOURCE=http://localhost:9101/metrics |
|
|
|
DEST=http://localhost:9100/metrics |
|
|
|
DEST=http://localhost:9100/metrics/job/$JOB/instance/$INSTANCE |
|
|
|
IWANNASLEEP=15 |
|
|
|
|
|
|
|
alias pushmetrics="curl -s \"${SOURCE}\" | curl -u \"${BASIC_U}:${BASIC_P}\" --data-binary @- \"${DEST}\" >> /dev/null" |
|
|
|