Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Prometheus autoprovisioning #91

Open
derfredy opened this issue Sep 4, 2020 · 1 comment
Open

Prometheus autoprovisioning #91

derfredy opened this issue Sep 4, 2020 · 1 comment

Comments

@derfredy
Copy link

derfredy commented Sep 4, 2020

Prometheus has a folder where you can place a json file per machine you'd like to scrape.
It is located by default in /etc/prometheus/provisioning

An example of this kind of files and static configurations looks like this:

cat provisioning/polkadot-sentry-2.json

[
    {
        "labels": {
            "job": "polkadot-sentry-2",
            "group": "substrate",
            "network": "polkadot"
        },
        "targets": [
            "XX.XX.XX.XX:9615",
            "XX.XX.XX.XX:9100"
        ]
    }
]

It would be really nice if the last of the roles after a successful deployment creates and uploads this file to your monitoring server.
There is no need to restart prometheus. A proper use of labels will later help you to configure your grafana panels and new machines should pop up automagically there.

@fgimenez
Copy link
Contributor

fgimenez commented Sep 4, 2020

Thanks for taking the time @derfredy! Sounds good, adding to the backlog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants