github.com/alibaba/ilogtail/pkg@v0.0.0-20250526110833-c53b480d046c/selfmonitor/metrics_constants_runner.go (about)

     1  // Copyright 2024 iLogtail Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package selfmonitor
    16  
    17  //////////////////////////////////////////////////////////////////////////
    18  // runner
    19  //////////////////////////////////////////////////////////////////////////
    20  
    21  // lebel keys
    22  const (
    23  	MetricLabelKeyRunnerName = "runner_name"
    24  )
    25  
    26  // label values
    27  const (
    28  	MetricLabelValueMetricCategoryRunner = "runner"
    29  )
    30  
    31  /**********************************************************
    32  *   k8s meta
    33  **********************************************************/
    34  
    35  // label keys
    36  const (
    37  	MetricLabelKeyClusterID = "cluster_id"
    38  )
    39  
    40  // label values
    41  const (
    42  	MetricLabelValueRunnerNameK8sMeta = "k8s_meta"
    43  )
    44  
    45  // metric keys
    46  const (
    47  	MetricRunnerK8sMetaAddEventTotal    = "add_event_total"
    48  	MetricRunnerK8sMetaUpdateEventTotal = "update_event_total"
    49  	MetricRunnerK8sMetaDeleteEventTotal = "delete_event_total"
    50  	MetricRunnerK8sMetaCacheSize        = "cache_size"
    51  	MetricRunnerK8sMetaQueueSize        = "queue_size"
    52  	MetricRunnerK8sMetaHTTPRequestTotal = "http_request_total"
    53  	MetricRunnerK8sMetaHTTPAvgDelayMs   = "avg_delay_ms"
    54  	MetricRunnerK8sMetaHTTPMaxDelayMs   = "max_delay_ms"
    55  )