renovate[bot] on docker-build-push-action-4.x
chore(deps): update docker/buil… (compare)
nicolargo on develop
fix: dev-requirements.txt to re… Merge pull request #2260 from n… (compare)
nicolargo on snyk-fix-b8cb82bf8e2e61c9a4d05be59159bc75
fix: dev-requirements.txt to re… (compare)
nicolargo on snyk-fix-b8cb82bf8e2e61c9a4d05be59159bc75
nicolargo on develop
Correct clear-text logging of s… (compare)
nicolargo on develop
Update documentation (compare)
nicolargo on develop
Add a new exporter to MongoDB t… Add a new exporter to MongoDB t… Merge branch 'issue2203' into d… (compare)
I seem to be struggling with Glances a little. Im looking to be super selective about what I would like Glances to send to (for example influx, but would rather it hit a api endpoint on another server).
I would like only for it to push out:
Is that kinda thing even possible?
Why...
I want to create a dashboard of servers (we have well over 40) which are just simple panels, one for each - which can just show basic info, and alert us to any problem. Grafana is nice, but way too in depth. If we see a problem we will login to the server/droplet and investigate from there.
I know its annoying to get long messages, but if anyone can point me in the direction, ill go from there!
I want to use it to monitor some virtual machines, however I am not sure it works except the standalone. I tried to do the client/server mode operation.
I ran glances -s on a virtual machine I want to use as server and then glances -c @serverip on client machines. After running the command on server, it returns a messages saying Glances XML-RPC server is running on 0.0.0.0:61209
Announce the Glances server on the LAN (using x.x.x.x ip address)
After running the command on the client, it doesn't say anything.
How do I know it is working. How do I get stats of results?
Tia
glance -w
on all these machines? Then to get the result, can I just call API end points to get them? Also, how can I ensure glances are running say like 24/7 on the machines. If you use influx, does it overwrite results or it just stores them at the different intervals?
[Unit]
Description=Glances
After=network.target influxd.service
[Service]
ExecStart=/usr/bin/glances --quiet --export-influxdb -t {{influxdb_intervall | default("30")}}
Restart=on-failure
RestartSec=30s
TimeoutSec=30s
[Install]
WantedBy=multi-user.target
[influxdb]
# Configuration for the --export-influxdb option
# https://influxdb.com/
host={{influxdb_server | default("localhost")}}
port=8086
user={{influxdb_username | default("root")}}
password={{influxdb_password | default("root")}}
db=glances
prefix={{ansible_hostname}}
tags=system:{{ansible_hostname}}
{
"request": {
"method": "GET",
"url": "api/datasources/proxy/2/query",
"params": {
"db": "glances",
"q": "SELECT mean(\"().cpu_percent\") FROM \"localhost.docker\" WHERE time >= now() - 15m GROUP BY time(500ms) fill(none);SELECT mean(\"().memory_usage\") FROM \"localhost.docker\" WHERE time >= now() - 15m GROUP BY time(500ms) fill(none)",
"epoch": "ms"
},
"data": null,
"precision": "ms"
},
"response": {
"results": [
{
"statement_id": 0
},
{
"statement_id": 1
}
]
}
}
2020-06-29 16:50:21,113 -- ERROR -- docker plugin - Cannot get Docker version (('Connection aborted.', FileNotFoundError(2, 'No such file or directory')))
2020-06-29 16:50:21,436 -- ERROR -- Cannot export hank.docker stats to InfluxDB (400: {"error":"unable to parse 'hank.docker ': invalid field format"}
)
2020-06-29 16:50:21,445 -- ERROR -- Cannot export hank.gpu stats to InfluxDB (400: {"error":"unable to parse 'hank.gpu ': invalid field format"}
hi every one!
I'm young student in computer sciences from Libreville(Gabon Africa). I have some class exercice where i have obligation to code(implement) a simple(mini) application monitoring using C or python but still now i can't found some tutorial to do my class exercice. Please some one can help me.
Thanks a lot.