Add labs
This commit is contained in:
22
04-mosquitto/lab12/lab.txt
Normal file
22
04-mosquitto/lab12/lab.txt
Normal file
@ -0,0 +1,22 @@
|
||||
= Prometheus Exporter
|
||||
|
||||
Verwenden Sie 10 Sekunden Interval für $SYS Nachrichten.
|
||||
Starten Sie, falls erforderlich, einen Mosquitto Broker.
|
||||
|
||||
listener 1883
|
||||
listener_allow_anonymous true
|
||||
sys_interval 10
|
||||
|
||||
|
||||
|
||||
Starten Sie den Mosquitto Prometheus Exporter.
|
||||
|
||||
$ docker run --rm -it --init --net host -v $PWD:/mosquitto/config eclipse-mosquitto
|
||||
|
||||
$ docker run --rm -it --init --net host sapcc/mosquitto-exporter \
|
||||
--endpoint tcp://localhost:1883
|
||||
|
||||
|
||||
Rufen Sie die Daten mit dem Browser oder cURL ab:
|
||||
|
||||
$ curl http://localhost:9234/metrics
|
||||
3
04-mosquitto/lab12/mosquitto.conf
Normal file
3
04-mosquitto/lab12/mosquitto.conf
Normal file
@ -0,0 +1,3 @@
|
||||
listener 1883
|
||||
listener_allow_anonymous true
|
||||
sys_interval 10
|
||||
Reference in New Issue
Block a user