41 lines
811 B
Bash
Executable File
41 lines
811 B
Bash
Executable File
alerts1='[
|
|
{
|
|
"labels": {
|
|
"alertname": "DiskRunningFull",
|
|
"dev": "sda1",
|
|
"instance": "example1"
|
|
}
|
|
},
|
|
{
|
|
"labels": {
|
|
"alertname": "DiskRunningFull",
|
|
"dev": "sda2",
|
|
"instance": "example1"
|
|
}
|
|
},
|
|
{
|
|
"labels": {
|
|
"alertname": "DiskRunningFull",
|
|
"dev": "sda1",
|
|
"instance": "example2"
|
|
}
|
|
},
|
|
{
|
|
"labels": {
|
|
"alertname": "DiskRunningFull",
|
|
"dev": "sdb2",
|
|
"instance": "example2"
|
|
}
|
|
},
|
|
{
|
|
"labels": {
|
|
"alertname": "DiskRunningFull",
|
|
"dev": "sda1",
|
|
"instance": "example3"
|
|
}
|
|
}
|
|
]'
|
|
curl -XPOST -d"$alerts1" http://localhost:9093/api/v1/alerts
|
|
curl -XPOST -d"$alerts1" http://localhost:9094/api/v1/alerts
|
|
curl -XPOST -d"$alerts1" http://localhost:9095/api/v1/alerts
|