Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Query and query_range PathLokiQueryRange = "/loki/api/v1/query_range" PathLokiQuery = "/loki/api/v1/query" // Metadata PathLokiSeries = "/loki/api/v1/series" PathLokiLabels = "/loki/api/v1/labels" PathLokiLabel = "/loki/api/v1/label" PathLokiLabelNameValues = "/loki/api/v1/label/{name}/values" // Index PathLokiIndexStats = "/loki/api/v1/index/stats" PathLokiIndexShards = "/loki/api/v1/index/shards" PathLokiIndexVolume = "/loki/api/v1/index/volume" PathLokiIndexVolumeRange = "/loki/api/v1/index/volume_range" // Patterns and log metadata PathLokiPatterns = "/loki/api/v1/patterns" PathLokiDetectedLabels = "/loki/api/v1/detected_labels" PathLokiDetectedFields = "/loki/api/v1/detected_fields" PathLokiDetectedFieldNameValues = "/loki/api/v1/detected_field/{name}/values" // Tail (live tailing) PathLokiTail = "/loki/api/v1/tail" // Ruler PathLokiRules = "/loki/api/v1/rules" PathLokiRulesNamespace = "/loki/api/v1/rules/{namespace}" PathLokiRulesNamespaceGroup = "/loki/api/v1/rules/{namespace}/{groupName}" // Delete requests (compactor) PathLokiDelete = "/loki/api/v1/delete" PathLokiCacheGenNumbers = "/loki/api/v1/cache/generation_numbers" // Ingest PathLokiPush = "/loki/api/v1/push" )
Loki API v1 HTTP path constants.
View Source
const ( PathPromQuery = "/api/prom/query" PathPromLabel = "/api/prom/label" PathPromLabelPrefix = "/api/prom/label/" // prefix for path matching PathPromLabelSuffix = "/values" PathPromLabelNameValues = "/api/prom/label/{name}/values" PathPromSeries = "/api/prom/series" PathPromPush = "/api/prom/push" PathPromTail = "/api/prom/tail" // Ruler PathPromRules = "/api/prom/rules" PathPromRulesNamespace = "/api/prom/rules/{namespace}" PathPromRulesNamespaceGroup = "/api/prom/rules/{namespace}/{groupName}" )
Prometheus-compatible (legacy) API path constants.
View Source
const ( PathPrometheusRules = "/prometheus/api/v1/rules" PathPrometheusAlerts = "/prometheus/api/v1/alerts" )
Prometheus API paths (used by ruler).
View Source
const ( // AggregatedMetricLabel is the label added to streams containing aggregated metrics AggregatedMetricLabel = "__aggregated_metric__" // PatternLabel is the label added to streams containing detected patterns PatternLabel = "__pattern__" // LogsDrilldownAppName is the app name used to identify requests from Logs Drilldown LogsDrilldownAppName = "grafana-lokiexplore-app" )
View Source
const ( LevelLabel = "detected_level" LogLevelUnknown = "unknown" LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelWarn = "warn" LogLevelError = "error" LogLevelFatal = "fatal" LogLevelCritical = "critical" LogLevelTrace = "trace" )
View Source
const ( Loki = "loki" Cortex = "cortex" OTLP = "otlp" )
View Source
const VariantLabel = "__variant__"
VariantLabel is the name of the label used to identify which variant a series belongs to in multi-variant queries.
Variables ¶
View Source
var LogLevels = []string{ LogLevelUnknown, LogLevelDebug, LogLevelInfo, LogLevelWarn, LogLevelError, LogLevelFatal, LogLevelCritical, LogLevelTrace, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.