The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/services/ngalert/models/constants.go

21 lines
867 B

package models
const (
// FromAlertHeaderName name of header added to datasource query requests
// to denote request is originating from Grafana Alerting.
//
// Data sources might check this in query method as sometimes alerting
// needs special considerations.
// Several existing systems also compare against the value of this header.
// Altering this constitutes a breaking change.
//
// Note: The spelling of this headers is intentionally degenerate from the
// others for compatibility reasons. When sent over a network, the key of
// this header is canonicalized to "Fromalert".
// However, some datasources still compare against the string "FromAlert".
FromAlertHeaderName = "FromAlert"
// CacheSkipHeaderName name of header added to datasource query requests
// to denote request should not be cached.
CacheSkipHeaderName = "X-Cache-Skip"
)