Solved Prometheus - monitoring & time series database
-
"From metrics to insight
Power your metrics and alerting with a leading
open-source monitoring solution." -
And Thanos:
"Open source, highly available Prometheus setup with long term storage capabilities."
-
And AlertManager:
"The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts."
https://prometheus.io/docs/alerting/latest/alertmanager/
https://github.com/prometheus/alertmanager -
After installing Grafana on Cloudron, I'd really like this too!
-
https://git.cloudron.io/erik/prometheus-app our app for Prometheus ( in progress )
-
@eriktad This looks like a good start! I guess we need some sort of authentication for the prometheus dashboard? https://prometheus.io/docs/guides/tls-encryption/ has some information.
-
@girish Yes but I only find basic http auth on Prometheus docs, so what can you suggest?
-
@girish is it normal practice for us?
-
@eriktad Yes. You can do something like https://git.cloudron.io/cloudron/simple-torrent-app/-/blob/master/apache/cloud-torrent.conf . That apache config sets up the app for authentication via Cloudron LDAP .
-
@girish cool thx
-
@girish I tried this example, but somehow apache does not start for me, if you can help, I will give the more information about this
-
@eriktad Happy to help, let me know what error you are facing.
-
-
@girish So idk what happens I try to do it like another example I found in GitLab
-
@girish Ye problem founded. #!/bin/sh -> #!/bin/bash
-
@girish Prometheus app is done. Can you review it and tell me what to need to do next?
-
@girish https://git.cloudron.io/erik/alertmanager-app and Alertmanager app
-
@eriktad That's great progress! Yes, I can take a look next week. I have marked this app as WIP.
-
@eriktad said in Prometheus - monitoring & time series database:
@girish https://git.cloudron.io/erik/alertmanager-app and Alertmanager app
I don't have much experience with Promotheus. Does it make sense to merge alertmanager into the main app itself or do you think it should be separate apps?
If you need help deciding, we can take a guess from how they are usually deployed? Are they in separate domains or as subpaths etc.
-
@girish Yeh, I thought about that but idk, they run on other ports and have other dashboards, but altermanager only alerting Prometheus massages, I can try to merge, think it is good idea, but we need to understand if user no need alerts why we setup it with Prometheus.
-
@eriktad They make sense as separate Apps.
I'd suggest the App naming would make it clearer, so:
- Prometheus Server
- Prometheus Alertmanager
- Thanos (Single-Node)
For interest, like Statping, in mission-critical setups it makes sense to have Prometheus running on a separate Cloudron instance for continuity of data-gathering throughout the ups & downs of the services being monitored.
-
@eriktad Thanks for packaging the app. I have published the app as unstable currently. https://git.cloudron.io/cloudron/prometheus-app/ is the repo. I removed the apache authentication bits because I have now merged the "auth wall" feature in Cloudron 6. With that feature, we can just add proxyAuth to the manifest and we will immediately get a login screen (so we don't need to put these things as part of the app).
-
@eriktad Can you do similar changes for the alertmanager repo as well? I will publish that as well.
BTW, I also put you in the app dev group. You might have to go to your profile so that the badge displays.
-
I moved the repo to https://git.cloudron.io/cloudron/prometheus-server-app per @marcusquinn 's recommendation
-
@girish yes thx.
-
@girish alertmanager new version pushed to my repo.
-
@girish And I am already commented under one commit on gitlab, if you have a time plz review it.
-
@eriktad Thanks! I have published that also as unstable now. https://git.cloudron.io/cloudron/prometheus-alertmanager-app is the new repo and you should have commit privileges as well.
-
@girish Yes thank you.
-
@girish can you plz merge this and we can finish with this
https://git.cloudron.io/cloudron/prometheus-server-app/-/merge_requests/2
https://git.cloudron.io/cloudron/prometheus-alertmanager-app/-/merge_requests/1