Prometheus have support for k8s/marathon/zk based discovery, since you ask for monitoring method I assume you haven't used any of them. I think a (python)script that generate the file-based config is enough.

On Wed, Mar 03, 2021 at 21:00 +0800, John Dexter wrote:

While I understand the technical definitions I would appreciate some real-world advice in the best way to structure my configuration file for
scalability and maintenance.

Our system includes many instrumented modules running on an application server on distinct ports, e.g on APPSERVER001 modules [A, B, C, D, E, ..., Z] expose endpoints APPSERVER001:[1001,1002,1003,1004, 1005, ...,
1026]/metrics

However, we deploy multiple systems so we actually have APPSERVER001, 002, ... each with the same modules exposing the same endpoints. I might want a dashboard (Grafana) for each system, but I might also want a dashboard displaying data across systems (e.g. show status of module B on all
systems)
Initially we only want to monitor one system as we get this all up and
running, before adding other systems over time.

Can anyone suggest how they would approach this in terms of job/scrape config? file-based discovery seems a great option but I'm struggling how to
avoid a lot of copy-paste and duplicate information.

Many thanks for your advice.

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/603f8ee8.1c69fb81.5f14d.5f50SMTPIN_ADDED_BROKEN%40gmr-mx.google.com.

Attachment: signature.asc
Description: PGP signature

Reply via email to