cURL
curl --request POST \
--url https://docs.chronosphere.io/api/v1/config/monitors \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dry_run": true
}
'{
"monitor": {
"name": "<string>",
"annotations": {},
"bucket_slug": "<string>",
"collection": {
"slug": "<string>"
},
"collection_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"graphite_query": "sumSeries(stats.timers.*.mean_90)",
"interval_secs": 123,
"labels": {},
"logging_query": "<string>",
"notification_policy_slug": "<string>",
"prometheus_query": "up{job=\"prometheus\"} == 0",
"schedule": {
"timezone": "<string>",
"weekly_schedule": {
"friday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"monday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"saturday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"sunday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"thursday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"tuesday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"wednesday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
}
}
},
"series_conditions": {
"defaults": {
"critical": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
}
},
"overrides": [
{
"label_matchers": [
{
"name": "<string>",
"type": "<unknown>",
"value": "<string>"
}
],
"severity_conditions": {
"critical": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
}
}
}
]
},
"signal_grouping": {
"label_names": [
"<string>"
],
"signal_per_series": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}Monitor
CreateMonitor
POST
/
api
/
v1
/
config
/
monitors
cURL
curl --request POST \
--url https://docs.chronosphere.io/api/v1/config/monitors \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dry_run": true
}
'{
"monitor": {
"name": "<string>",
"annotations": {},
"bucket_slug": "<string>",
"collection": {
"slug": "<string>"
},
"collection_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"graphite_query": "sumSeries(stats.timers.*.mean_90)",
"interval_secs": 123,
"labels": {},
"logging_query": "<string>",
"notification_policy_slug": "<string>",
"prometheus_query": "up{job=\"prometheus\"} == 0",
"schedule": {
"timezone": "<string>",
"weekly_schedule": {
"friday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"monday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"saturday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"sunday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"thursday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"tuesday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
},
"wednesday": {
"active": "<unknown>",
"ranges": [
{
"end_hh_mm": "<string>",
"start_hh_mm": "<string>"
}
]
}
}
},
"series_conditions": {
"defaults": {
"critical": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
}
},
"overrides": [
{
"label_matchers": [
{
"name": "<string>",
"type": "<unknown>",
"value": "<string>"
}
],
"severity_conditions": {
"critical": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
},
"warn": {
"conditions": [
{
"op": "<unknown>",
"resolve_sustain_secs": 123,
"sustain_secs": 123,
"value": 123
}
]
}
}
}
]
},
"signal_grouping": {
"label_names": [
"<string>"
],
"signal_per_series": true
},
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://chronosphere-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Chronosphere API token
Body
application/json
If true, validates the specified configuration without creating the Monitor. If the specified configuration is valid, the endpoint returns a partial response without the Monitor. If the specified configuration is invalid, the endpoint returns an error.
The Monitor to create.
Show child attributes
Show child attributes
Response
A successful response containing the created Monitor.
Show child attributes
Show child attributes
⌘I