Run iron functions using:
docker run --rm -it --name functions -v ${PWD}/data:/app/data -v /var/run/docker.sock:/var/run/docker.sock -p 8010:8080 iron/functionsRun our exporter:
go run main.go collector.goRun prometheus using:
docker run -p 9090:9090 --net=host -v $PWD/prometheus-data:/prometheus-data prom/prometheus --config.file=/prometheus-data/prometheus.ymlGrafana dashboard json located in ./dashboard
to run a few tasks in iron functions use commands below:
curl http://localhost:8010/r/myapp/hello #runs failed taskcurl http://localhost:8010/r/hello2/hello2 #runs succeeded task