Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loftkun/be133823f9957493c0580c637eca2905 to your computer and use it in GitHub Desktop.
Save loftkun/be133823f9957493c0580c637eca2905 to your computer and use it in GitHub Desktop.
Pushgateway->Prometheus->Alertmanager->Webhook

Pushgateway->Prometheus->Alertmanager->Webhook

シーケンス

@startuml
curl --> Pushgateway : POST metrics\n ( for non alert )

Prometheus --> Pushgateway : scrape metrics

curl --> Pushgateway : POST metrics\n ( for alert )

Prometheus --> Pushgateway : scrape metrics

Prometheus --> Alertmanager : send alert info\n ( firing )

Alertmanager --> ExternalService : send alert info\n ( firing )

curl --> Pushgateway : POST metrics\n ( for resolve alert )

Prometheus --> Pushgateway : scrape metrics

Prometheus --> Alertmanager : send alert info\n ( resolved )

note over Alertmanager : if send_resolved \n config is true
Alertmanager --> ExternalService : send alert info\n ( resolved )
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment