diff --git a/.codecov.yml b/.codecov.yml index d0f1b16519..9f3dd00ee5 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -63,6 +63,10 @@ coverage: target: 75 flags: - gnatsd_streaming + Grafana: + target: 75 + flags: + - grafana JFrog_Platform: target: 75 flags: @@ -442,6 +446,11 @@ flags: paths: - go_pprof_scraper/datadog_checks/go_pprof_scraper - go_pprof_scraper/tests + grafana: + carryforward: true + paths: + - grafana/datadog_checks/grafana + - grafana/tests grpc_check: carryforward: true paths: diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7ccfae49a1..c0b38903b5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -88,6 +88,7 @@ /go_pprof_scraper/ @nsrip-dd /gnatsd/ @stephenprater @jaredhoyt dev@goldstar.com /gnatsd_streaming/ @stephenprater @jaredhoyt dev@goldstar.com +/grafana/ @rtjl reubentjl@gmail.com /gremlin/ support@gremlin.com /grpc_check/ @keisku /harness_cloud_cost_management/ @akashbdj support@harness.io @DataDog/ecosystems-review diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index a56610ad5b..68047fe73d 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -458,6 +458,24 @@ jobs: test-py3: ${{ inputs.test-py3 }} setup-env-vars: "${{ inputs.setup-env-vars }}" secrets: inherit + j0642a7b: + uses: DataDog/integrations-core/.github/workflows/test-target.yml@master + with: + job-name: Grafana + target: grafana + platform: linux + runner: '["ubuntu-22.04"]' + repo: "${{ inputs.repo }}" + python-version: "${{ inputs.python-version }}" + latest: ${{ inputs.latest }} + agent-image: "${{ inputs.agent-image }}" + agent-image-py2: "${{ inputs.agent-image-py2 }}" + agent-image-windows: "${{ inputs.agent-image-windows }}" + agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}" + test-py2: ${{ inputs.test-py2 }} + test-py3: ${{ inputs.test-py3 }} + setup-env-vars: "${{ inputs.setup-env-vars }}" + secrets: inherit jb27a2a4: uses: DataDog/integrations-core/.github/workflows/test-target.yml@master with: diff --git a/grafana/CHANGELOG.md b/grafana/CHANGELOG.md new file mode 100644 index 0000000000..493ee314f2 --- /dev/null +++ b/grafana/CHANGELOG.md @@ -0,0 +1,8 @@ +# CHANGELOG - Grafana + +## 1.0.0 / 2025-11-02 + +***Added***: + +* Initial Release + diff --git a/grafana/README.md b/grafana/README.md new file mode 100644 index 0000000000..b628c7aa4e --- /dev/null +++ b/grafana/README.md @@ -0,0 +1,65 @@ +# Agent Check: Grafana + +## Overview + +Grafana is a multi-platform open source analytics and interactive visualization web application. This check monitors [Grafana][1] through the Datadog Agent. + +## Setup + +### Installation + +To install the Grafana check on your host: + +1. Install the [developer toolkit](https://docs.datadoghq.com/developers/integrations/python/) + on any machine. + +2. Run `ddev release build grafana` to build the package. + +3. [Download the Datadog Agent][2]. + +4. Upload the build artifact to any host with an Agent and + run `datadog-agent integration install -w + path/to/grafana/dist/.whl`. + +### Configuration + +1. Enable the internal Grafana metrics using the [Grafana config file](https://github.com/grafana/grafana/blob/c98259f74a835429ed2db6cca2c64a3802ebc43f/conf/defaults.ini#L1747) + + ``` + #################################### Internal Grafana Metrics ############ + # Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId + [metrics] + enabled = true + ``` + +2. Edit the `grafana/conf.yaml` file in the `conf.d/` folder at the root of your Agent's configuration directory to start collecting your Grafana metrics. See the [sample grafana/conf.yaml][4] for all available configuration options. + +3. [Restart the Agent][5]. + +### Validation + +[Run the Agent's status subcommand][6] and look for `grafana` under the Checks section. + +## Data Collected + +### Metrics + +See [metadata.csv][7] for a list of metrics provided by this integration. + +### Events + +The Grafana integration does not include any events. + +## Troubleshooting + +Need help? Contact [Datadog support][3]. + +[1]: https://grafana.com/ +[2]: https://app.datadoghq.com/account/settings/agent/latest +[3]: https://docs.datadoghq.com/containers/kubernetes/integrations/ +[4]: https://github.com/DataDog/integrations-extras/blob/master/grafana/datadog_checks/grafana/data/conf.yaml.example +[5]: https://docs.datadoghq.com/agent/configuration/agent-commands/#start-stop-and-restart-the-agent +[6]: https://docs.datadoghq.com/agent/configuration/agent-commands/#agent-status-and-information +[7]: https://github.com/DataDog/integrations-extras/blob/master/grafana/metadata.csv +[8]: https://github.com/DataDog/integrations-extras/blob/master/grafana/assets/service_checks.json +[9]: https://docs.datadoghq.com/help/ diff --git a/grafana/assets/configuration/spec.yaml b/grafana/assets/configuration/spec.yaml new file mode 100644 index 0000000000..d4782a097a --- /dev/null +++ b/grafana/assets/configuration/spec.yaml @@ -0,0 +1,17 @@ +name: Grafana +files: +- name: grafana.yaml + options: + - template: init_config + options: + - template: init_config/default + - template: instances + options: + - template: instances/openmetrics + overrides: + openmetrics_endpoint.enabled: true + openmetrics_endpoint.required: true + openmetrics_endpoint.value.example: http://127.0.0.1:3000/metrics + extra_metrics.value.example: + - grafana_alerting_alertmanager_alerts: alerting.alertmanager_alerts + - grafana_database_conn_idle: database.conn_idle diff --git a/grafana/assets/service_checks.json b/grafana/assets/service_checks.json new file mode 100644 index 0000000000..e16d0845b9 --- /dev/null +++ b/grafana/assets/service_checks.json @@ -0,0 +1,16 @@ +[ + { + "agent_version": "7.69.0", + "integration": "Grafana", + "check": "grafana.openmetrics.health", + "statuses": [ + "ok", + "critical" + ], + "groups": [ + "endpoint" + ], + "name": "Grafana prometheus endpoint health", + "description": "Returns `CRITICAL` if the check cannot access the metrics endpoint. Returns `OK` otherwise." + } +] \ No newline at end of file diff --git a/grafana/datadog_checks/grafana/__about__.py b/grafana/datadog_checks/grafana/__about__.py new file mode 100644 index 0000000000..1f356cc57b --- /dev/null +++ b/grafana/datadog_checks/grafana/__about__.py @@ -0,0 +1 @@ +__version__ = '1.0.0' diff --git a/grafana/datadog_checks/grafana/__init__.py b/grafana/datadog_checks/grafana/__init__.py new file mode 100644 index 0000000000..0e18620418 --- /dev/null +++ b/grafana/datadog_checks/grafana/__init__.py @@ -0,0 +1,4 @@ +from .__about__ import __version__ +from .check import GrafanaCheck + +__all__ = ['__version__', 'GrafanaCheck'] diff --git a/grafana/datadog_checks/grafana/check.py b/grafana/datadog_checks/grafana/check.py new file mode 100644 index 0000000000..7ce4c7cd80 --- /dev/null +++ b/grafana/datadog_checks/grafana/check.py @@ -0,0 +1,14 @@ +from datadog_checks.base import OpenMetricsBaseCheckV2 + +from .metrics import METRIC_MAP + + +class GrafanaCheck(OpenMetricsBaseCheckV2): + __NAMESPACE__ = 'grafana' + DEFAULT_METRIC_LIMIT = 0 + + def __init__(self, name, init_config, instances): + super(GrafanaCheck, self).__init__(name, init_config, instances) + + def get_default_config(self): + return {"metrics": [METRIC_MAP]} diff --git a/grafana/datadog_checks/grafana/config_models/__init__.py b/grafana/datadog_checks/grafana/config_models/__init__.py new file mode 100644 index 0000000000..5c2bf5c9f4 --- /dev/null +++ b/grafana/datadog_checks/grafana/config_models/__init__.py @@ -0,0 +1,20 @@ +# This file is autogenerated. +# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: +# ddev -x validate config -s +# ddev -x validate models -s + +from .instance import InstanceConfig +from .shared import SharedConfig + + +class ConfigMixin: + _config_model_instance: InstanceConfig + _config_model_shared: SharedConfig + + @property + def config(self) -> InstanceConfig: + return self._config_model_instance + + @property + def shared_config(self) -> SharedConfig: + return self._config_model_shared diff --git a/grafana/datadog_checks/grafana/config_models/defaults.py b/grafana/datadog_checks/grafana/config_models/defaults.py new file mode 100644 index 0000000000..0013907872 --- /dev/null +++ b/grafana/datadog_checks/grafana/config_models/defaults.py @@ -0,0 +1,120 @@ +# This file is autogenerated. +# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: +# ddev -x validate config -s +# ddev -x validate models -s + + +def instance_allow_redirects(): + return True + + +def instance_auth_type(): + return 'basic' + + +def instance_cache_metric_wildcards(): + return True + + +def instance_cache_shared_labels(): + return True + + +def instance_collect_counters_with_distributions(): + return False + + +def instance_collect_histogram_buckets(): + return True + + +def instance_disable_generic_tags(): + return False + + +def instance_empty_default_hostname(): + return False + + +def instance_enable_health_service_check(): + return True + + +def instance_histogram_buckets_as_distributions(): + return False + + +def instance_ignore_connection_errors(): + return False + + +def instance_kerberos_auth(): + return 'disabled' + + +def instance_kerberos_delegate(): + return False + + +def instance_kerberos_force_initiate(): + return False + + +def instance_log_requests(): + return False + + +def instance_min_collection_interval(): + return 15 + + +def instance_non_cumulative_histogram_buckets(): + return False + + +def instance_persist_connections(): + return False + + +def instance_request_size(): + return 16 + + +def instance_skip_proxy(): + return False + + +def instance_tag_by_endpoint(): + return True + + +def instance_telemetry(): + return False + + +def instance_timeout(): + return 10 + + +def instance_tls_ignore_warning(): + return False + + +def instance_tls_use_host_header(): + return False + + +def instance_tls_verify(): + return True + + +def instance_use_latest_spec(): + return False + + +def instance_use_legacy_auth_encoding(): + return True + + +def instance_use_process_start_time(): + return False diff --git a/grafana/datadog_checks/grafana/config_models/instance.py b/grafana/datadog_checks/grafana/config_models/instance.py new file mode 100644 index 0000000000..07646f388b --- /dev/null +++ b/grafana/datadog_checks/grafana/config_models/instance.py @@ -0,0 +1,168 @@ +# This file is autogenerated. +# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: +# ddev -x validate config -s +# ddev -x validate models -s + +from __future__ import annotations + +from types import MappingProxyType +from typing import Any, Optional, Union + +from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator + +from datadog_checks.base.utils.functions import identity +from datadog_checks.base.utils.models import validation + +from . import defaults, validators + + +class AuthToken(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + frozen=True, + ) + reader: Optional[MappingProxyType[str, Any]] = None + writer: Optional[MappingProxyType[str, Any]] = None + + +class ExtraMetrics(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + extra='allow', + frozen=True, + ) + name: Optional[str] = None + type: Optional[str] = None + + +class MetricPatterns(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + frozen=True, + ) + exclude: Optional[tuple[str, ...]] = None + include: Optional[tuple[str, ...]] = None + + +class Metrics(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + extra='allow', + frozen=True, + ) + name: Optional[str] = None + type: Optional[str] = None + + +class Proxy(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + frozen=True, + ) + http: Optional[str] = None + https: Optional[str] = None + no_proxy: Optional[tuple[str, ...]] = None + + +class ShareLabels(BaseModel): + model_config = ConfigDict( + arbitrary_types_allowed=True, + frozen=True, + ) + labels: Optional[tuple[str, ...]] = None + match: Optional[tuple[str, ...]] = None + + +class InstanceConfig(BaseModel): + model_config = ConfigDict( + validate_default=True, + arbitrary_types_allowed=True, + frozen=True, + ) + allow_redirects: Optional[bool] = None + auth_token: Optional[AuthToken] = None + auth_type: Optional[str] = None + aws_host: Optional[str] = None + aws_region: Optional[str] = None + aws_service: Optional[str] = None + cache_metric_wildcards: Optional[bool] = None + cache_shared_labels: Optional[bool] = None + collect_counters_with_distributions: Optional[bool] = None + collect_histogram_buckets: Optional[bool] = None + connect_timeout: Optional[float] = None + disable_generic_tags: Optional[bool] = None + empty_default_hostname: Optional[bool] = None + enable_health_service_check: Optional[bool] = None + exclude_labels: Optional[tuple[str, ...]] = None + exclude_metrics: Optional[tuple[str, ...]] = None + exclude_metrics_by_labels: Optional[MappingProxyType[str, Union[bool, tuple[str, ...]]]] = None + extra_headers: Optional[MappingProxyType[str, Any]] = None + extra_metrics: Optional[tuple[Union[str, MappingProxyType[str, Union[str, ExtraMetrics]]], ...]] = None + headers: Optional[MappingProxyType[str, Any]] = None + histogram_buckets_as_distributions: Optional[bool] = None + hostname_format: Optional[str] = None + hostname_label: Optional[str] = None + ignore_connection_errors: Optional[bool] = None + ignore_tags: Optional[tuple[str, ...]] = None + include_labels: Optional[tuple[str, ...]] = None + kerberos_auth: Optional[str] = None + kerberos_cache: Optional[str] = None + kerberos_delegate: Optional[bool] = None + kerberos_force_initiate: Optional[bool] = None + kerberos_hostname: Optional[str] = None + kerberos_keytab: Optional[str] = None + kerberos_principal: Optional[str] = None + log_requests: Optional[bool] = None + metric_patterns: Optional[MetricPatterns] = None + metrics: Optional[tuple[Union[str, MappingProxyType[str, Union[str, Metrics]]], ...]] = None + min_collection_interval: Optional[float] = None + namespace: Optional[str] = Field(None, pattern='\\w*') + non_cumulative_histogram_buckets: Optional[bool] = None + ntlm_domain: Optional[str] = None + openmetrics_endpoint: str + password: Optional[str] = None + persist_connections: Optional[bool] = None + proxy: Optional[Proxy] = None + raw_line_filters: Optional[tuple[str, ...]] = None + raw_metric_prefix: Optional[str] = None + read_timeout: Optional[float] = None + rename_labels: Optional[MappingProxyType[str, Any]] = None + request_size: Optional[float] = None + service: Optional[str] = None + share_labels: Optional[MappingProxyType[str, Union[bool, ShareLabels]]] = None + skip_proxy: Optional[bool] = None + tag_by_endpoint: Optional[bool] = None + tags: Optional[tuple[str, ...]] = None + telemetry: Optional[bool] = None + timeout: Optional[float] = None + tls_ca_cert: Optional[str] = None + tls_cert: Optional[str] = None + tls_ciphers: Optional[tuple[str, ...]] = None + tls_ignore_warning: Optional[bool] = None + tls_private_key: Optional[str] = None + tls_protocols_allowed: Optional[tuple[str, ...]] = None + tls_use_host_header: Optional[bool] = None + tls_verify: Optional[bool] = None + use_latest_spec: Optional[bool] = None + use_legacy_auth_encoding: Optional[bool] = None + use_process_start_time: Optional[bool] = None + username: Optional[str] = None + + @model_validator(mode='before') + def _initial_validation(cls, values): + return validation.core.initialize_config(getattr(validators, 'initialize_instance', identity)(values)) + + @field_validator('*', mode='before') + def _validate(cls, value, info): + field = cls.model_fields[info.field_name] + field_name = field.alias or info.field_name + if field_name in info.context['configured_fields']: + value = getattr(validators, f'instance_{info.field_name}', identity)(value, field=field) + else: + value = getattr(defaults, f'instance_{info.field_name}', lambda: value)() + + return validation.utils.make_immutable(value) + + @model_validator(mode='after') + def _final_validation(cls, model): + return validation.core.check_model(getattr(validators, 'check_instance', identity)(model)) diff --git a/grafana/datadog_checks/grafana/config_models/shared.py b/grafana/datadog_checks/grafana/config_models/shared.py new file mode 100644 index 0000000000..4017c43e2e --- /dev/null +++ b/grafana/datadog_checks/grafana/config_models/shared.py @@ -0,0 +1,41 @@ +# This file is autogenerated. +# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: +# ddev -x validate config -s +# ddev -x validate models -s + +from __future__ import annotations + +from typing import Optional + +from pydantic import BaseModel, ConfigDict, field_validator, model_validator + +from datadog_checks.base.utils.functions import identity +from datadog_checks.base.utils.models import validation + +from . import validators + + +class SharedConfig(BaseModel): + model_config = ConfigDict( + validate_default=True, + arbitrary_types_allowed=True, + frozen=True, + ) + service: Optional[str] = None + + @model_validator(mode='before') + def _initial_validation(cls, values): + return validation.core.initialize_config(getattr(validators, 'initialize_shared', identity)(values)) + + @field_validator('*', mode='before') + def _validate(cls, value, info): + field = cls.model_fields[info.field_name] + field_name = field.alias or info.field_name + if field_name in info.context['configured_fields']: + value = getattr(validators, f'shared_{info.field_name}', identity)(value, field=field) + + return validation.utils.make_immutable(value) + + @model_validator(mode='after') + def _final_validation(cls, model): + return validation.core.check_model(getattr(validators, 'check_shared', identity)(model)) diff --git a/grafana/datadog_checks/grafana/config_models/validators.py b/grafana/datadog_checks/grafana/config_models/validators.py new file mode 100644 index 0000000000..39523e4f92 --- /dev/null +++ b/grafana/datadog_checks/grafana/config_models/validators.py @@ -0,0 +1,9 @@ +# Here you can include additional config validators or transformers +# +# def initialize_instance(values, **kwargs): +# if 'my_option' not in values and 'my_legacy_option' in values: +# values['my_option'] = values['my_legacy_option'] +# if values.get('my_number') > 10: +# raise ValueError('my_number max value is 10, got %s' % str(values.get('my_number'))) +# +# return values diff --git a/grafana/datadog_checks/grafana/data/conf.yaml.example b/grafana/datadog_checks/grafana/data/conf.yaml.example new file mode 100644 index 0000000000..7c947a8aad --- /dev/null +++ b/grafana/datadog_checks/grafana/data/conf.yaml.example @@ -0,0 +1,606 @@ +## All options defined here are available to all instances. +# +init_config: + + ## @param service - string - optional + ## Attach the tag `service:` to every metric, event, and service check emitted by this integration. + ## + ## Additionally, this sets the default `service` for every log source. + # + # service: + +## Every instance is scheduled independently of the others. +# +instances: + + ## @param openmetrics_endpoint - string - required + ## The URL exposing metrics in the OpenMetrics format. + # + - openmetrics_endpoint: http://127.0.0.1:3000/metrics + + ## @param raw_metric_prefix - string - optional + ## A prefix that is removed from all exposed metric names, if present. + ## All configuration options will use the prefix-less name. + # + # raw_metric_prefix: _ + + ## @param extra_metrics - (list of string or mapping) - optional + ## This list defines metrics to collect from the `openmetrics_endpoint`, in addition to + ## what the check collects by default. If the check already collects a metric, then + ## metric definitions here take precedence. Metrics may be defined in 3 ways: + ## + ## 1. If the item is a string, then it represents the exposed metric name, and + ## the sent metric name will be identical. For example: + ## ``` + ## extra_metrics: + ## - + ## - + ## ``` + ## 2. If the item is a mapping, then the keys represent the exposed metric names. + ## + ## 1. If a value is a string, then it represents the sent metric name. For example: + ## ``` + ## extra_metrics: + ## - : + ## - : + ## ``` + ## 2. If a value is a mapping, then it must have a `name` and/or `type` key. + ## The `name` represents the sent metric name, and the `type` represents how + ## the metric should be handled, overriding any type information the endpoint + ## may provide. For example: + ## ``` + ## extra_metrics: + ## - : + ## name: + ## type: + ## - : + ## name: + ## type: + ## ``` + ## The supported native types are `gauge`, `counter`, `histogram`, and `summary`. + ## + ## Note: To collect counter metrics with names ending in `_total`, specify the metric name without the `_total` + ## suffix. For example, to collect the counter metric `promhttp_metric_handler_requests_total`, specify + ## `promhttp_metric_handler_requests`. This submits to Datadog the metric name appended with `.count`. + ## For more information, see: + ## https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#suffixes + ## + ## Regular expressions may be used to match the exposed metric names, for example: + ## ``` + ## extra_metrics: + ## - ^network_(ingress|egress)_.+ + ## - .+: + ## type: gauge + ## ``` + # + # extra_metrics: + # - grafana_alerting_alertmanager_alerts: alerting.alertmanager_alerts + # - grafana_database_conn_idle: database.conn_idle + + ## @param exclude_metrics - list of strings - optional + ## A list of metrics to exclude, with each entry being either + ## the exact metric name or a regular expression. + ## In order to exclude all metrics but the ones matching a specific filter, + ## you can use a negative lookahead regex like: + ## - ^(?!foo).*$ + # + # exclude_metrics: [] + + ## @param exclude_metrics_by_labels - mapping - optional + ## A mapping of labels to exclude metrics with matching label name and their corresponding metric values. To match + ## all values of a label, set it to `true`. + ## + ## Note: Label filtering happens before `rename_labels`. + ## + ## For example, the following configuration instructs the check to exclude all metrics with + ## a label `worker` or a label `pid` with the value of either `23` or `42`. + ## + ## exclude_metrics_by_labels: + ## worker: true + ## pid: + ## - '23' + ## - '42' + # + # exclude_metrics_by_labels: {} + + ## @param exclude_labels - list of strings - optional + ## A list of labels to exclude, useful for high cardinality values like timestamps or UUIDs. + ## May be used in conjunction with `include_labels`. + ## Labels defined in `exclude_labels` will take precedence in case of overlap. + ## + ## Note: Label filtering happens before `rename_labels`. + # + # exclude_labels: [] + + ## @param include_labels - list of strings - optional + ## A list of labels to include. May be used in conjunction with `exclude_labels`. + ## Labels defined in `exclude_labels` will take precedence in case of overlap. + ## + ## Note: Label filtering happens before `rename_labels`. + # + # include_labels: [] + + ## @param rename_labels - mapping - optional + ## A mapping of label names to their new names. + # + # rename_labels: + # : + # : + + ## @param enable_health_service_check - boolean - optional - default: true + ## Whether or not to send a service check named `.openmetrics.health` which reports + ## the health of the `openmetrics_endpoint`. + # + # enable_health_service_check: true + + ## @param ignore_connection_errors - boolean - optional - default: false + ## Whether or not to ignore connection errors when scraping `openmetrics_endpoint`. + # + # ignore_connection_errors: false + + ## @param hostname_label - string - optional + ## Override the hostname for every metric submission with the value of one of its labels. + # + # hostname_label: + + ## @param hostname_format - string - optional + ## When `hostname_label` is set, this instructs the check how to format the values. The string + ## `` is replaced by the value of the label defined by `hostname_label`. + # + # hostname_format: + + ## @param collect_histogram_buckets - boolean - optional - default: true + ## Whether or not to send histogram buckets. + # + # collect_histogram_buckets: true + + ## @param non_cumulative_histogram_buckets - boolean - optional - default: false + ## Whether or not histogram buckets are non-cumulative and to come with a `lower_bound` tag. + # + # non_cumulative_histogram_buckets: false + + ## @param histogram_buckets_as_distributions - boolean - optional - default: false + ## Whether or not to send histogram buckets as Datadog distribution metrics. This implicitly + ## enables the `collect_histogram_buckets` and `non_cumulative_histogram_buckets` options. + ## + ## Learn more about distribution metrics: + ## https://docs.datadoghq.com/developers/metrics/types/?tab=distribution#metric-types + # + # histogram_buckets_as_distributions: false + + ## @param collect_counters_with_distributions - boolean - optional - default: false + ## Whether or not to also collect the observation counter metrics ending in `.sum` and `.count` + ## when sending histogram buckets as Datadog distribution metrics. This implicitly enables the + ## `histogram_buckets_as_distributions` option. + # + # collect_counters_with_distributions: false + + ## @param use_process_start_time - boolean - optional - default: false + ## Whether to enable a heuristic for reporting counter values on the first scrape. When true, + ## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero + ## initial value can be assumed for counters. This requires keeping metrics in memory until the entire + ## response is received. + # + # use_process_start_time: false + + ## @param share_labels - mapping - optional + ## This mapping allows for the sharing of labels across multiple metrics. The keys represent the + ## exposed metrics from which to share labels, and the values are mappings that configure the + ## sharing behavior. Each mapping must have at least one of the following keys: + ## + ## - labels - This is a list of labels to share. All labels are shared if this is not set. + ## - match - This is a list of labels to match on other metrics as a condition for sharing. + ## - values - This is a list of allowed values as a condition for sharing. + ## + ## To unconditionally share all labels of a metric, set it to `true`. + ## + ## For example, the following configuration instructs the check to apply all labels from `metric_a` + ## to all other metrics, the `node` label from `metric_b` to only those metrics that have a `pod` + ## label value that matches the `pod` label value of `metric_b`, and all labels from `metric_c` + ## to all other metrics if their value is equal to `23` or `42`. + # + # share_labels: + # metric_a: true + # metric_b: + # labels: + # - node + # match: + # - pod + # metric_c: + # values: + # - 23 + # - 42 + + ## @param cache_shared_labels - boolean - optional - default: true + ## When `share_labels` is set, it instructs the check to cache labels collected from the first payload + ## for improved performance. + ## + ## Set this to `false` to compute label sharing for every payload at the risk of potentially increased memory usage. + # + # cache_shared_labels: true + + ## @param raw_line_filters - list of strings - optional + ## A list of regular expressions used to exclude lines read from the `openmetrics_endpoint` + ## from being parsed. + # + # raw_line_filters: [] + + ## @param cache_metric_wildcards - boolean - optional - default: true + ## Whether or not to cache data from metrics that are defined by regular expressions rather + ## than the full metric name. + # + # cache_metric_wildcards: true + + ## @param telemetry - boolean - optional - default: false + ## Whether or not to submit metrics prefixed by `.telemetry.` for debugging purposes. + # + # telemetry: false + + ## @param ignore_tags - list of strings - optional + ## A list of regular expressions used to ignore tags added by Autodiscovery and entries in the `tags` option. + # + # ignore_tags: + # - + # - + # - + + ## @param proxy - mapping - optional + ## This overrides the `proxy` setting in `init_config`. + ## + ## Set HTTP or HTTPS proxies for this instance. Use the `no_proxy` list + ## to specify hosts that must bypass proxies. + ## + ## The SOCKS protocol is also supported, for example: + ## + ## socks5://user:pass@host:port + ## + ## Using the scheme `socks5` causes the DNS resolution to happen on the + ## client, rather than on the proxy server. This is in line with `curl`, + ## which uses the scheme to decide whether to do the DNS resolution on + ## the client or proxy. If you want to resolve the domains on the proxy + ## server, use `socks5h` as the scheme. + # + # proxy: + # http: http://: + # https: https://: + # no_proxy: + # - + # - + + ## @param skip_proxy - boolean - optional - default: false + ## This overrides the `skip_proxy` setting in `init_config`. + ## + ## If set to `true`, this makes the check bypass any proxy + ## settings enabled and attempt to reach services directly. + # + # skip_proxy: false + + ## @param auth_type - string - optional - default: basic + ## The type of authentication to use. The available types (and related options) are: + ## ``` + ## - basic + ## |__ username + ## |__ password + ## |__ use_legacy_auth_encoding + ## - digest + ## |__ username + ## |__ password + ## - ntlm + ## |__ ntlm_domain + ## |__ password + ## - kerberos + ## |__ kerberos_auth + ## |__ kerberos_cache + ## |__ kerberos_delegate + ## |__ kerberos_force_initiate + ## |__ kerberos_hostname + ## |__ kerberos_keytab + ## |__ kerberos_principal + ## - aws + ## |__ aws_region + ## |__ aws_host + ## |__ aws_service + ## ``` + ## The `aws` auth type relies on boto3 to automatically gather AWS credentials, for example: from `.aws/credentials`. + ## Details: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#configuring-credentials + # + # auth_type: basic + + ## @param use_legacy_auth_encoding - boolean - optional - default: true + ## When `auth_type` is set to `basic`, this determines whether to encode as `latin1` rather than `utf-8`. + # + # use_legacy_auth_encoding: true + + ## @param username - string - optional + ## The username to use if services are behind basic or digest auth. + # + # username: + + ## @param password - string - optional + ## The password to use if services are behind basic or NTLM auth. + # + # password: + + ## @param ntlm_domain - string - optional + ## If your services use NTLM authentication, specify + ## the domain used in the check. For NTLM Auth, append + ## the username to domain, not as the `username` parameter. + # + # ntlm_domain: \ + + ## @param kerberos_auth - string - optional - default: disabled + ## If your services use Kerberos authentication, you can specify the Kerberos + ## strategy to use between: + ## + ## - required + ## - optional + ## - disabled + ## + ## See https://github.com/requests/requests-kerberos#mutual-authentication + # + # kerberos_auth: disabled + + ## @param kerberos_cache - string - optional + ## Sets the KRB5CCNAME environment variable. + ## It should point to a credential cache with a valid TGT. + # + # kerberos_cache: + + ## @param kerberos_delegate - boolean - optional - default: false + ## Set to `true` to enable Kerberos delegation of credentials to a server that requests delegation. + ## + ## See https://github.com/requests/requests-kerberos#delegation + # + # kerberos_delegate: false + + ## @param kerberos_force_initiate - boolean - optional - default: false + ## Set to `true` to preemptively initiate the Kerberos GSS exchange and + ## present a Kerberos ticket on the initial request (and all subsequent). + ## + ## See https://github.com/requests/requests-kerberos#preemptive-authentication + # + # kerberos_force_initiate: false + + ## @param kerberos_hostname - string - optional + ## Override the hostname used for the Kerberos GSS exchange if its DNS name doesn't + ## match its Kerberos hostname, for example: behind a content switch or load balancer. + ## + ## See https://github.com/requests/requests-kerberos#hostname-override + # + # kerberos_hostname: + + ## @param kerberos_principal - string - optional + ## Set an explicit principal, to force Kerberos to look for a + ## matching credential cache for the named user. + ## + ## See https://github.com/requests/requests-kerberos#explicit-principal + # + # kerberos_principal: + + ## @param kerberos_keytab - string - optional + ## Set the path to your Kerberos key tab file. + # + # kerberos_keytab: + + ## @param auth_token - mapping - optional + ## This allows for the use of authentication information from dynamic sources. + ## Both a reader and writer must be configured. + ## + ## The available readers are: + ## + ## - type: file + ## path (required): The absolute path for the file to read from. + ## pattern: A regular expression pattern with a single capture group used to find the + ## token rather than using the entire file, for example: Your secret is (.+) + ## - type: oauth + ## url (required): The token endpoint. + ## client_id (required): The client identifier. + ## client_secret (required): The client secret. + ## basic_auth: Whether the provider expects credentials to be transmitted in + ## an HTTP Basic Auth header. The default is: false + ## options: Mapping of additional options to pass to the provider, such as the audience + ## or the scope. For example: + ## options: + ## audience: https://example.com + ## scope: read:example + ## + ## The available writers are: + ## + ## - type: header + ## name (required): The name of the field, for example: Authorization + ## value: The template value, for example `Bearer `. The default is: + ## placeholder: The substring in `value` to replace with the token, defaults to: + # + # auth_token: + # reader: + # type: + # : + # : + # writer: + # type: + # : + # : + + ## @param aws_region - string - optional + ## If your services require AWS Signature Version 4 signing, set the region. + ## + ## See https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + # + # aws_region: + + ## @param aws_host - string - optional + ## If your services require AWS Signature Version 4 signing, set the host. + ## This only needs the hostname and does not require the protocol (HTTP, HTTPS, and more). + ## For example, if connecting to https://us-east-1.amazonaws.com/, set `aws_host` to `us-east-1.amazonaws.com`. + ## + ## Note: This setting is not necessary for official integrations. + ## + ## See https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + # + # aws_host: + + ## @param aws_service - string - optional + ## If your services require AWS Signature Version 4 signing, set the service code. For a list + ## of available service codes, see https://docs.aws.amazon.com/general/latest/gr/rande.html + ## + ## Note: This setting is not necessary for official integrations. + ## + ## See https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + # + # aws_service: + + ## @param tls_verify - boolean - optional - default: true + ## Instructs the check to validate the TLS certificate of services. + # + # tls_verify: true + + ## @param tls_use_host_header - boolean - optional - default: false + ## If a `Host` header is set, this enables its use for SNI (matching against the TLS certificate CN or SAN). + # + # tls_use_host_header: false + + ## @param tls_ignore_warning - boolean - optional - default: false + ## If `tls_verify` is disabled, security warnings are logged by the check. + ## Disable those by setting `tls_ignore_warning` to true. + # + # tls_ignore_warning: false + + ## @param tls_cert - string - optional + ## The path to a single file in PEM format containing a certificate as well as any + ## number of CA certificates needed to establish the certificate's authenticity for + ## use when connecting to services. It may also contain an unencrypted private key to use. + # + # tls_cert: + + ## @param tls_private_key - string - optional + ## The unencrypted private key to use for `tls_cert` when connecting to services. This is + ## required if `tls_cert` is set and it does not already contain a private key. + # + # tls_private_key: + + ## @param tls_ca_cert - string - optional + ## The path to a file of concatenated CA certificates in PEM format or a directory + ## containing several CA certificates in PEM format. If a directory, the directory + ## must have been processed using the `openssl rehash` command. See: + ## https://www.openssl.org/docs/man3.2/man1/c_rehash.html + # + # tls_ca_cert: + + ## @param tls_protocols_allowed - list of strings - optional + ## The expected versions of TLS/SSL when fetching intermediate certificates. + ## Only `SSLv3`, `TLSv1.2`, `TLSv1.3` are allowed by default. The possible values are: + ## SSLv3 + ## TLSv1 + ## TLSv1.1 + ## TLSv1.2 + ## TLSv1.3 + # + # tls_protocols_allowed: + # - SSLv3 + # - TLSv1.2 + # - TLSv1.3 + + ## @param tls_ciphers - list of strings - optional + ## The list of ciphers suites to use when connecting to an endpoint. If not specified, + ## `ALL` ciphers are used. For list of ciphers see: + ## https://www.openssl.org/docs/man1.0.2/man1/ciphers.html + # + # tls_ciphers: + # - TLS_AES_256_GCM_SHA384 + # - TLS_CHACHA20_POLY1305_SHA256 + # - TLS_AES_128_GCM_SHA256 + + ## @param headers - mapping - optional + ## The headers parameter allows you to send specific headers with every request. + ## You can use it for explicitly specifying the host header or adding headers for + ## authorization purposes. + ## + ## This overrides any default headers. + # + # headers: + # Host: + # X-Auth-Token: + + ## @param extra_headers - mapping - optional + ## Additional headers to send with every request. + # + # extra_headers: + # Host: + # X-Auth-Token: + + ## @param timeout - number - optional - default: 10 + ## The timeout for accessing services. + ## + ## This overrides the `timeout` setting in `init_config`. + # + # timeout: 10 + + ## @param connect_timeout - number - optional + ## The connect timeout for accessing services. Defaults to `timeout`. + # + # connect_timeout: + + ## @param read_timeout - number - optional + ## The read timeout for accessing services. Defaults to `timeout`. + # + # read_timeout: + + ## @param request_size - number - optional - default: 16 + ## The number of kibibytes (KiB) to read from streaming HTTP responses at a time. + # + # request_size: 16 + + ## @param log_requests - boolean - optional - default: false + ## Whether or not to debug log the HTTP(S) requests made, including the method and URL. + # + # log_requests: false + + ## @param persist_connections - boolean - optional - default: false + ## Whether or not to persist cookies and use connection pooling for improved performance. + # + # persist_connections: false + + ## @param allow_redirects - boolean - optional - default: true + ## Whether or not to allow URL redirection. + # + # allow_redirects: true + + ## @param tags - list of strings - optional + ## A list of tags to attach to every metric and service check emitted by this instance. + ## + ## Learn more about tagging at https://docs.datadoghq.com/tagging + # + # tags: + # - : + # - : + + ## @param service - string - optional + ## Attach the tag `service:` to every metric, event, and service check emitted by this integration. + ## + ## Overrides any `service` defined in the `init_config` section. + # + # service: + + ## @param min_collection_interval - number - optional - default: 15 + ## This changes the collection interval of the check. For more information, see: + ## https://docs.datadoghq.com/developers/write_agent_check/#collection-interval + # + # min_collection_interval: 15 + + ## @param empty_default_hostname - boolean - optional - default: false + ## This forces the check to send metrics with no hostname. + ## + ## This is useful for cluster-level checks. + # + # empty_default_hostname: false + + ## @param metric_patterns - mapping - optional + ## A mapping of metrics to include or exclude, with each entry being a regular expression. + ## + ## Metrics defined in `exclude` will take precedence in case of overlap. + # + # metric_patterns: + # include: + # - + # exclude: + # - diff --git a/grafana/datadog_checks/grafana/metrics.py b/grafana/datadog_checks/grafana/metrics.py new file mode 100644 index 0000000000..1a92c162d6 --- /dev/null +++ b/grafana/datadog_checks/grafana/metrics.py @@ -0,0 +1,226 @@ +counter = { + 'grafana_alerting_remote_alertmanager_configuration_sync_failures': ( + 'alerting_remote_alertmanager_configuration_sync_failures' + ), + 'grafana_alerting_state_history_writes_bytes': 'alerting_state_history_writes_bytes', + 'grafana_encryption_cache_reads': 'encryption_cache_reads', + 'grafana_registered_metrics': 'registered_metrics', + 'grafana_authn_authn_failed_authentication': 'authn_authn_failed_authentication', + 'grafana_alerting_alerts_invalid': 'alerting_alerts_invalid', + 'grafana_apiserver_storage_data_key_generation_failures': 'apiserver_storage_data_key_generation_failures', + 'grafana_api_user_signup_invite': 'api_user_signup_invite', + 'grafana_alerting_nflog_gossip_messages_propagated': 'alerting_nflog_gossip_messages_propagated', + 'grafana_database_conn_max_idle_closed_seconds': 'database_conn_max_idle_closed_seconds', + 'grafana_database_conn_wait_duration_seconds': 'database_conn_wait_duration_seconds', + 'grafana_apiserver_audit_requests_rejected': 'apiserver_audit_requests_rejected', + 'grafana_database_conn_max_idle_closed': 'database_conn_max_idle_closed', + 'grafana_api_models_dashboard_insert': 'api_models_dashboard_insert', + 'grafana_access_evaluation_count': 'access_evaluation_count', + 'grafana_database_conn_wait_count': 'database_conn_wait_count', + 'grafana_live_node_messages_received_count': 'live_node_messages_received_count', + 'grafana_api_admin_user_created': 'api_admin_user_created', + 'grafana_api_user_signup_started': 'api_user_signup_started', + 'grafana_api_org_create': 'api_org_create', + 'grafana_alerting_nflog_queries': 'alerting_nflog_queries', + 'grafana_process_network_receive_bytes': 'process_network_receive_bytes', + 'grafana_alerting_silences_gossip_messages_propagated': 'alerting_silences_gossip_messages_propagated', + 'grafana_api_login_oauth': 'api_login_oauth', + 'grafana_encryption_ops': 'encryption_ops', + 'grafana_apiserver_kube_aggregator_x509_insecure_sha1': 'apiserver_kube_aggregator_x509_insecure_sha1', + 'grafana_api_dashboard_snapshot_external': 'api_dashboard_snapshot_external', + 'grafana_live_broker_redis_pub_sub_dropped_messages': 'live_broker_redis_pub_sub_dropped_messages', + 'grafana_api_dashboard_snapshot_get': 'api_dashboard_snapshot_get', + 'grafana_api_user_signup_completed': 'api_user_signup_completed', + 'grafana_cardinality_enforcement_unexpected_categorizations': 'cardinality_enforcement_unexpected_categorizations', + 'grafana_api_login_saml': 'api_login_saml', + 'grafana_alerting_remote_alertmanager_configuration_syncs': 'alerting_remote_alertmanager_configuration_syncs', + 'grafana_folder_id_api_count': 'folder_id_api_count', + 'grafana_page_response_status': 'page_response_status', + 'grafana_idforwarding_idforwarding_token_signing': 'idforwarding_idforwarding_token_signing', + 'grafana_process_cpu_seconds': 'process_cpu_seconds', + 'grafana_database_conn_max_lifetime_closed': 'database_conn_max_lifetime_closed', + 'grafana_hidden_metrics': 'hidden_metrics', + 'grafana_idforwarding_idforwarding_token_signing_from_cache': 'idforwarding_idforwarding_token_signing_from_cache', + 'grafana_api_login_post': 'api_login_post', + 'grafana_alerting_alerts_received': 'alerting_alerts_received', + 'grafana_alerting_silences_query_errors': 'alerting_silences_query_errors', + 'grafana_aggregator_discovery_aggregation_count': 'aggregator_discovery_aggregation_count', + 'grafana_alerting_silences_queries': 'alerting_silences_queries', + 'grafana_api_response_status': 'api_response_status', + 'grafana_apiserver_webhooks_x509_insecure_sha1': 'apiserver_webhooks_x509_insecure_sha1', + 'grafana_emails_sent_failed': 'emails_sent_failed', + 'grafana_apiserver_tls_handshake_errors': 'apiserver_tls_handshake_errors', + 'grafana_public_dashboard_request_count': 'public_dashboard_request_count', + 'grafana_proxy_response_status': 'proxy_response_status', + 'grafana_database_migrations': 'database_migrations', + 'grafana_folder_id_service_count': 'folder_id_service_count', + 'grafana_instance_start': 'instance_start', + 'grafana_alerting_nflog_query_errors': 'alerting_nflog_query_errors', + 'grafana_disabled_metrics': 'disabled_metrics', + 'grafana_alerting_remote_alertmanager_state_syncs': 'alerting_remote_alertmanager_state_syncs', + 'grafana_access_search_user_permissions_cache_usage': 'access_search_user_permissions_cache_usage', + 'grafana_apiserver_storage_envelope_transformation_cache_misses': ( + 'apiserver_storage_envelope_transformation_cache_misses' + ), + 'grafana_apiserver_webhooks_x509_missing_san': 'apiserver_webhooks_x509_missing_san', + 'grafana_access_permissions_cache_usage': 'access_permissions_cache_usage', + 'grafana_live_node_messages_sent_count': 'live_node_messages_sent_count', + 'grafana_db_datasource_query_by_id': 'db_datasource_query_by_id', + 'grafana_api_dashboard_snapshot_create': 'api_dashboard_snapshot_create', + 'grafana_plugins_preinstall': 'plugins_preinstall', + 'grafana_apiserver_audit_event': 'apiserver_audit_event', + 'grafana_idforwarding_idforwarding_failed_token_signing': 'idforwarding_idforwarding_failed_token_signing', + 'grafana_alerting_remote_alertmanager_state_sync_failures': 'alerting_remote_alertmanager_state_sync_failures', + 'grafana_process_network_transmit_bytes': 'process_network_transmit_bytes', + 'grafana_apiserver_kube_aggregator_x509_missing_san': 'apiserver_kube_aggregator_x509_missing_san', + 'grafana_emails_sent': 'emails_sent', +} +gauge = { + 'grafana_process_resident_memory_bytes': 'process_resident_memory_bytes', + 'grafana_database_conn_in_use': 'database_conn_in_use', + 'grafana_alerting_scheduler_behind_seconds': 'alerting_scheduler_behind_seconds', + 'grafana_index_server_index_size': 'index_server_index_size', + 'grafana_stat_totals_annotations': 'stat_totals_annotations', + 'grafana_stat_totals_library_variables': 'stat_totals_library_variables', + 'grafana_stat_active_users': 'stat_active_users', + 'grafana_apiserver_envelope_encryption_dek_cache_fill_percent': ( + 'apiserver_envelope_encryption_dek_cache_fill_percent' + ), + 'grafana_process_virtual_memory_max_bytes': 'process_virtual_memory_max_bytes', + 'grafana_alerting_alertmanager_config_match': 'alerting_alertmanager_config_match', + 'grafana_alerting_remote_alertmanager_last_readiness_check_timestamp_seconds': ( + 'alerting_remote_alertmanager_last_readiness_check_timestamp_seconds' + ), + 'grafana_stat_total_playlists': 'stat_total_playlists', + 'grafana_live_node_num_subscriptions': 'live_node_num_subscriptions', + 'grafana_apiserver_flowcontrol_seat_fair_frac': 'apiserver_flowcontrol_seat_fair_frac', + 'grafana_process_open_fds': 'process_open_fds', + 'grafana_alerting_dispatcher_aggregation_groups': 'alerting_dispatcher_aggregation_groups', + 'grafana_database_conn_max_open': 'database_conn_max_open', + 'grafana_build_info': 'build_info', + 'grafana_live_node_num_clients': 'live_node_num_clients', + 'grafana_stat_total_migrated_api_keys_to_sa_tokens': 'stat_total_migrated_api_keys_to_sa_tokens', + 'grafana_rendering_queue_size': 'rendering_queue_size', + 'grafana_stat_totals_dashboard_versions': 'stat_totals_dashboard_versions', + 'grafana_alerting_alertmanager_config_object_matchers': 'alerting_alertmanager_config_object_matchers', + 'grafana_alerting_alertmanager_config_matchers': 'alerting_alertmanager_config_matchers', + 'grafana_stat_totals_viewers': 'stat_totals_viewers', + 'grafana_database_conn_open': 'database_conn_open', + 'grafana_alerting_silences_snapshot_size_bytes': 'alerting_silences_snapshot_size_bytes', + 'grafana_stat_totals_rule_groups': 'stat_totals_rule_groups', + 'grafana_stat_totals_active_editors': 'stat_totals_active_editors', + 'grafana_alerting_active_configurations': 'alerting_active_configurations', + 'grafana_alerting_state_history_info': 'alerting_state_history_info', + 'grafana_alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds': ( + 'alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds' + ), + 'grafana_stat_totals_folder': 'stat_totals_folder', + 'grafana_stat_totals_data_keys': 'stat_totals_data_keys', + 'grafana_database_conn_idle': 'database_conn_idle', + 'grafana_alerting_discovered_configurations': 'alerting_discovered_configurations', + 'grafana_process_start_time_seconds': 'process_start_time_seconds', + 'grafana_alerting_remote_alertmanager_last_state_sync_timestamp_seconds': ( + 'alerting_remote_alertmanager_last_state_sync_timestamp_seconds' + ), + 'grafana_stat_totals_dashboard': 'stat_totals_dashboard', + 'grafana_plugin_build_info': 'plugin_build_info', + 'grafana_stat_total_teams': 'stat_total_teams', + 'grafana_alerting_alertmanager_config_size_bytes': 'alerting_alertmanager_config_size_bytes', + 'grafana_live_node_num_users': 'live_node_num_users', + 'grafana_apiserver_current_inflight_requests': 'apiserver_current_inflight_requests', + 'grafana_alerting_ticker_interval_seconds': 'alerting_ticker_interval_seconds', + 'grafana_alerting_alertmanager_inhibition_rules': 'alerting_alertmanager_inhibition_rules', + 'grafana_live_node_build': 'live_node_build', + 'grafana_stat_failed_migrated_api_keys_to_sa_tokens': 'stat_failed_migrated_api_keys_to_sa_tokens', + 'grafana_live_node_num_channels': 'live_node_num_channels', + 'grafana_alerting_ticker_last_consumed_tick_timestamp_seconds': ( + 'alerting_ticker_last_consumed_tick_timestamp_seconds' + ), + 'grafana_alerting_nflog_snapshot_size_bytes': 'alerting_nflog_snapshot_size_bytes', + 'grafana_plugin_target_info': 'plugin_target_info', + 'grafana_process_max_fds': 'process_max_fds', + 'grafana_stat_total_service_account_tokens': 'stat_total_service_account_tokens', + 'grafana_alerting_silences': 'alerting_silences', + 'grafana_stat_total_service_accounts_role_none': 'stat_total_service_accounts_role_none', + 'grafana_stat_totals_alert_rules': 'stat_totals_alert_rules', + 'grafana_stat_totals_correlations': 'stat_totals_correlations', + 'grafana_environment_info': 'environment_info', + 'grafana_alerting_alertmanager_config_match_re': 'alerting_alertmanager_config_match_re', + 'grafana_alerting_alertmanager_receivers': 'alerting_alertmanager_receivers', + 'grafana_stat_total_service_accounts': 'stat_total_service_accounts', + 'grafana_alerting_alertmanager_config_hash': 'alerting_alertmanager_config_hash', + 'grafana_stat_successfully_migrated_api_keys_to_sa_tokens': 'stat_successfully_migrated_api_keys_to_sa_tokens', + 'grafana_alerting_ticker_next_tick_timestamp_seconds': 'alerting_ticker_next_tick_timestamp_seconds', + 'grafana_apiserver_storage_objects': 'apiserver_storage_objects', + 'grafana_stat_totals_active_admins': 'stat_totals_active_admins', + 'grafana_alerting_schedule_alert_rules': 'alerting_schedule_alert_rules', + 'grafana_alerting_alertmanager_integrations': 'alerting_alertmanager_integrations', + 'grafana_alerting_alerts': 'alerting_alerts', + 'grafana_stat_totals_active_viewers': 'stat_totals_active_viewers', + 'grafana_feature_toggles_info': 'feature_toggles_info', + 'grafana_live_node_num_nodes': 'live_node_num_nodes', + 'grafana_alerting_alertmanager_alerts': 'alerting_alertmanager_alerts', + 'grafana_http_request_in_flight': 'http_request_in_flight', + 'grafana_process_virtual_memory_bytes': 'process_virtual_memory_bytes', + 'grafana_stat_total_users': 'stat_total_users', + 'grafana_alerting_active_alerts': 'alerting_active_alerts', + 'grafana_stat_totals_admins': 'stat_totals_admins', + 'grafana_alerting_schedule_alert_rules_hash': 'alerting_schedule_alert_rules_hash', + 'grafana_stat_totals_public_dashboard': 'stat_totals_public_dashboard', + 'grafana_stat_totals_editors': 'stat_totals_editors', + 'grafana_stat_total_orgs': 'stat_total_orgs', + 'grafana_stat_totals_library_panels': 'stat_totals_library_panels', + 'grafana_build_timestamp': 'build_timestamp', +} +histogram = { + 'grafana_alerting_state_full_sync_duration_seconds': 'alerting_state_full_sync_duration_seconds', + 'grafana_plugins_preinstall_duration_seconds': 'plugins_preinstall_duration_seconds', + 'grafana_frontend_boot_first_paint_time_seconds': 'frontend_boot_first_paint_time_seconds', + 'grafana_frontend_boot_load_time_seconds': 'frontend_boot_load_time_seconds', + 'grafana_search_dashboard_search_successes_duration_seconds': 'search_dashboard_search_successes_duration_seconds', + 'grafana_access_search_permissions_duration': 'access_search_permissions_duration', + 'grafana_database_migration_duration_seconds': 'database_migration_duration_seconds', + 'grafana_search_dashboard_search_failures_duration_seconds': 'search_dashboard_search_failures_duration_seconds', + 'grafana_frontend_boot_js_done_time_seconds': 'frontend_boot_js_done_time_seconds', + 'grafana_http_request_duration_seconds': 'http_request_duration_seconds', + 'grafana_frontend_plugins_preload_ms': 'frontend_plugins_preload_ms', + 'grafana_alerting_schedule_periodic_duration_seconds': 'alerting_schedule_periodic_duration_seconds', + 'grafana_apiserver_storage_data_key_generation_duration_seconds': ( + 'apiserver_storage_data_key_generation_duration_seconds' + ), + 'grafana_access_evaluation_duration': 'access_evaluation_duration', + 'grafana_live_node_pub_sub_lag_seconds': 'live_node_pub_sub_lag_seconds', + 'grafana_access_permissions_duration': 'access_permissions_duration', + 'grafana_database_all_migrations_duration_seconds': 'database_all_migrations_duration_seconds', + 'grafana_alerting_nflog_query_duration_seconds': 'alerting_nflog_query_duration_seconds', + 'grafana_alerting_silences_query_duration_seconds': 'alerting_silences_query_duration_seconds', + 'grafana_alerting_schedule_query_alert_rules_duration_seconds': ( + 'alerting_schedule_query_alert_rules_duration_seconds' + ), + 'grafana_alerting_notification_latency_seconds': 'alerting_notification_latency_seconds', + 'grafana_idforwarding_idforwarding_token_signing_duration_seconds': ( + 'idforwarding_idforwarding_token_signing_duration_seconds' + ), + 'grafana_apiserver_client_certificate_expiration_seconds': 'apiserver_client_certificate_expiration_seconds', + 'grafana_alerting_state_calculation_duration_seconds': 'alerting_state_calculation_duration_seconds', + 'grafana_frontend_boot_first_contentful_paint_time_seconds': 'frontend_boot_first_contentful_paint_time_seconds', + 'grafana_frontend_boot_css_time_seconds': 'frontend_boot_css_time_seconds', + 'grafana_storage_server_poller_query_latency_seconds': 'storage_server_poller_query_latency_seconds', +} +summary = { + 'grafana_api_dashboard_search_milliseconds': 'api_dashboard_search_milliseconds', + 'grafana_alerting_nflog_snapshot_duration_seconds': 'alerting_nflog_snapshot_duration_seconds', + 'grafana_alerting_execution_time_milliseconds': 'alerting_execution_time_milliseconds', + 'grafana_alerting_dispatcher_alert_processing_duration_seconds': ( + 'alerting_dispatcher_alert_processing_duration_seconds' + ), + 'grafana_api_dashboard_get_milliseconds': 'api_dashboard_get_milliseconds', + 'grafana_ldap_users_sync_execution_time': 'ldap_users_sync_execution_time', + 'grafana_api_dashboard_save_milliseconds': 'api_dashboard_save_milliseconds', + 'grafana_alerting_silences_snapshot_duration_seconds': 'alerting_silences_snapshot_duration_seconds', + 'grafana_api_dataproxy_request_all_milliseconds': 'api_dataproxy_request_all_milliseconds', + 'grafana_alerting_silences_gc_duration_seconds': 'alerting_silences_gc_duration_seconds', + 'grafana_live_client_command_duration_seconds': 'live_client_command_duration_seconds', + 'grafana_alerting_nflog_gc_duration_seconds': 'alerting_nflog_gc_duration_seconds', +} +METRIC_MAP = {**counter, **gauge, **histogram, **summary} diff --git a/grafana/hatch.toml b/grafana/hatch.toml new file mode 100644 index 0000000000..f62423b83c --- /dev/null +++ b/grafana/hatch.toml @@ -0,0 +1,7 @@ +[env.collectors.datadog-checks] + +[[envs.default.matrix]] +python = ["3.12"] + +[envs.default.env-vars] +DDEV_SKIP_GENERIC_TAGS_CHECK = "true" diff --git a/grafana/images/IMAGES_README.md b/grafana/images/IMAGES_README.md new file mode 100644 index 0000000000..443f3c45e3 --- /dev/null +++ b/grafana/images/IMAGES_README.md @@ -0,0 +1,41 @@ +# Marketplace Media Carousel Guidelines + +## Using the media gallery + +Please upload images to use the media gallery. Integrations require a minimum of 3 images. Images should highlight your product, your integration, and a full image of the Datadog integration dashboard. The gallery +can hold a maximum of 8 pieces of media total, and one of these pieces of media +can be a video (guidelines and submission steps below). Images should be +added to your /images directory and referenced in the manifest.json file. + + +## Image and video requirements + +### Images + +``` +File type : .jpg or .png +File size : ~500 KB per image, with a max of 1 MB per image +File dimensions : The image must be between 1440px and 2880px width, with a 16:9 aspect ratio (for example: 1440x810) +File name : Use only letters, numbers, underscores, and hyphens +Color mode : RGB +Color profile : sRGB +Description : 300 characters maximum +``` + +### Video + +To display a video in your media gallery, please send our team the zipped file +or a link to download the video at `marketplace@datadog.com`. In addition, +please upload a thumbnail image for your video as a part of the pull request. +Once approved, we will upload the file to Vimeo and provide you with the +vimeo_id to add to your manifest.json file. Please note that the gallery can +only hold one video. + +``` +File type : MP4 H.264 +File size : Max 1 video; 1 GB maximum size +File dimensions : The aspect ratio must be exactly 16:9, and the resolution must be 1920x1080 or higher +File name : partnerName-appName.mp4 +Run time : Recommendation of 60 seconds or less +Description : 300 characters maximum +``` diff --git a/grafana/manifest.json b/grafana/manifest.json new file mode 100644 index 0000000000..02a759894e --- /dev/null +++ b/grafana/manifest.json @@ -0,0 +1,53 @@ +{ + "manifest_version": "2.0.0", + "app_uuid": "6d1aa8b0-8639-4d2c-b3e3-f448546d1755", + "app_id": "grafana", + "assets": { + "integration": { + "auto_install": true, + "configuration": { + "spec": "assets/configuration/spec.yaml" + }, + "events": { + "creates_events": false + }, + "metrics": { + "check": "grafana.openmetrics.health", + "metadata_path": "metadata.csv", + "prefix": "grafana." + }, + "service_checks": { + "metadata_path": "assets/service_checks.json" + }, + "source_type_name": "Grafana", + "source_type_id": 61984711 + }, + "monitors": {}, + "saved_views": {} + }, + "author": { + "homepage": "https://github.com/DataDog/integrations-extras", + "name": "Community", + "sales_email": "reubentjl@gmail.com", + "support_email": "reubentjl@gmail.com" + }, + "display_on_public_website": true, + "tile": { + "description": "Grafana is a multi-platform open source analytics and interactive visualization web application.", + "title": "Grafana", + "media": [], + "classifier_tags": [ + "Category::Alerting", + "Category::Metrics", + "Offering::Integration", + "Submitted Data Type::Metrics", + "Supported OS::Linux", + "Supported OS::macOS", + "Supported OS::Windows" + ], + "overview": "README.md#Overview", + "configuration": "README.md#Setup", + "support": "README.md#Troubleshooting", + "changelog": "CHANGELOG.md" + } +} diff --git a/grafana/metadata.csv b/grafana/metadata.csv new file mode 100644 index 0000000000..c98e228a4a --- /dev/null +++ b/grafana/metadata.csv @@ -0,0 +1,270 @@ +metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric,sample_tags +grafana.access_evaluation_count.count,count,,,,Number of evaluation calls,0,grafana,,, +grafana.access_evaluation_duration.bucket,count,,,,Histogram for the runtime of evaluation function.,0,grafana,,, +grafana.access_evaluation_duration.count,count,,,,Histogram for the runtime of evaluation function.,0,grafana,,, +grafana.access_evaluation_duration.sum,count,,,,Histogram for the runtime of evaluation function.,0,grafana,,, +grafana.access_permissions_cache_usage.count,count,,,,Access control permissions cache hit/miss,0,grafana,,, +grafana.access_permissions_duration.bucket,count,,,,Histogram for the runtime of permissions check function.,0,grafana,,, +grafana.access_permissions_duration.count,count,,,,Histogram for the runtime of permissions check function.,0,grafana,,, +grafana.access_permissions_duration.sum,count,,,,Histogram for the runtime of permissions check function.,0,grafana,,, +grafana.access_search_permissions_duration.bucket,count,,,,Histogram for the runtime of permissions search function,0,grafana,,, +grafana.access_search_permissions_duration.count,count,,,,Histogram for the runtime of permissions search function,0,grafana,,, +grafana.access_search_permissions_duration.sum,count,,,,Histogram for the runtime of permissions search function,0,grafana,,, +grafana.access_search_user_permissions_cache_usage.count,count,,,,Access control search user permissions cache hit/miss,0,grafana,,, +grafana.aggregator_discovery_aggregation_count.count,count,,,,[ALPHA] Counter of number of times discovery was aggregated,0,grafana,,, +grafana.alerting_active_alerts,gauge,,,,Amount of active alerts,0,grafana,,, +grafana.alerting_active_configurations,gauge,,,,The number of active Alertmanager configurations.,0,grafana,,, +grafana.alerting_alertmanager_alerts,gauge,,,,How many alerts by state are in Grafana's Alertmanager.,0,grafana,,, +grafana.alerting_alertmanager_config_hash,gauge,,,,The hash of the Alertmanager configuration.,0,grafana,,, +grafana.alerting_alertmanager_config_match,gauge,,,,The total number of match,0,grafana,,, +grafana.alerting_alertmanager_config_match_re,gauge,,,,The total number of matchRE,0,grafana,,, +grafana.alerting_alertmanager_config_matchers,gauge,,,,The total number of matchers,0,grafana,,, +grafana.alerting_alertmanager_config_object_matchers,gauge,,,,The total number of object_matchers,0,grafana,,, +grafana.alerting_alertmanager_config_size_bytes,gauge,,byte,,The size of the grafana alertmanager configuration in bytes,0,grafana,,, +grafana.alerting_alertmanager_inhibition_rules,gauge,,,,Number of configured inhibition rules.,0,grafana,,, +grafana.alerting_alertmanager_integrations,gauge,,,,Number of configured receivers.,0,grafana,,, +grafana.alerting_alertmanager_receivers,gauge,,,,Number of configured receivers by state. It is considered active if used within a route.,0,grafana,,, +grafana.alerting_alerts,gauge,,,,How many alerts by state are in the scheduler.,0,grafana,,, +grafana.alerting_alerts_invalid.count,count,,,,The total number of received alerts that were invalid.,0,grafana,,, +grafana.alerting_alerts_received.count,count,,,,The total number of received alerts.,0,grafana,,, +grafana.alerting_discovered_configurations,gauge,,,,The number of organizations we've discovered that require an Alertmanager configuration.,0,grafana,,, +grafana.alerting_dispatcher_aggregation_groups,gauge,,,,Number of active aggregation groups,0,grafana,,, +grafana.alerting_dispatcher_alert_processing_duration_seconds.count,count,,second,,Summary of latencies for the processing of alerts.,0,grafana,,, +grafana.alerting_dispatcher_alert_processing_duration_seconds.sum,count,,second,,Summary of latencies for the processing of alerts.,0,grafana,,, +grafana.alerting_execution_time_milliseconds.count,count,,millisecond,,Summary of alert execution duration,0,grafana,,, +grafana.alerting_execution_time_milliseconds.quantile,gauge,,millisecond,,Summary of alert execution duration,0,grafana,,, +grafana.alerting_execution_time_milliseconds.sum,count,,millisecond,,Summary of alert execution duration,0,grafana,,, +grafana.alerting_nflog_gc_duration_seconds.count,count,,second,,Duration of the last notification log garbage collection cycle.,0,grafana,,, +grafana.alerting_nflog_gc_duration_seconds.sum,count,,second,,Duration of the last notification log garbage collection cycle.,0,grafana,,, +grafana.alerting_nflog_gossip_messages_propagated.count,count,,,,Number of received gossip messages that have been further gossiped.,0,grafana,,, +grafana.alerting_nflog_queries.count,count,,,,Number of notification log queries were received.,0,grafana,,, +grafana.alerting_nflog_query_duration_seconds.bucket,count,,second,,Duration of notification log query evaluation.,0,grafana,,, +grafana.alerting_nflog_query_duration_seconds.count,count,,second,,Duration of notification log query evaluation.,0,grafana,,, +grafana.alerting_nflog_query_duration_seconds.sum,count,,second,,Duration of notification log query evaluation.,0,grafana,,, +grafana.alerting_nflog_query_errors.count,count,,,,Number notification log received queries that failed.,0,grafana,,, +grafana.alerting_nflog_snapshot_duration_seconds.count,count,,second,,Duration of the last notification log snapshot.,0,grafana,,, +grafana.alerting_nflog_snapshot_duration_seconds.sum,count,,second,,Duration of the last notification log snapshot.,0,grafana,,, +grafana.alerting_nflog_snapshot_size_bytes,gauge,,byte,,Size of the last notification log snapshot in bytes.,0,grafana,,, +grafana.alerting_notification_latency_seconds.bucket,count,,second,,The latency of notifications in seconds.,0,grafana,,, +grafana.alerting_notification_latency_seconds.count,count,,second,,The latency of notifications in seconds.,0,grafana,,, +grafana.alerting_notification_latency_seconds.sum,count,,second,,The latency of notifications in seconds.,0,grafana,,, +grafana.alerting_remote_alertmanager_configuration_sync_failures.count,count,,,,Total number of failed attempts to sync configurations between Alertmanagers.,0,grafana,,, +grafana.alerting_remote_alertmanager_configuration_syncs.count,count,,,,Total number of configuration syncs to the remote Alertmanager.,0,grafana,,, +grafana.alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds,gauge,,second,,Timestamp of the last successful configuration sync to the remote Alertmanager in seconds.,0,grafana,,, +grafana.alerting_remote_alertmanager_last_readiness_check_timestamp_seconds,gauge,,second,,Timestamp of the last successful readiness check to the remote Alertmanager in seconds.,0,grafana,,, +grafana.alerting_remote_alertmanager_last_state_sync_timestamp_seconds,gauge,,second,,Timestamp of the last successful state sync to the remote Alertmanager in seconds.,0,grafana,,, +grafana.alerting_remote_alertmanager_state_sync_failures.count,count,,,,Total number of failed attempts to sync state between Alertmanagers.,0,grafana,,, +grafana.alerting_remote_alertmanager_state_syncs.count,count,,,,Total number of state syncs to the remote Alertmanager.,0,grafana,,, +grafana.alerting_schedule_alert_rules,gauge,,,,The number of alert rules that could be considered for evaluation at the next tick.,0,grafana,,, +grafana.alerting_schedule_alert_rules_hash,gauge,,,,A hash of the alert rules that could be considered for evaluation at the next tick.,0,grafana,,, +grafana.alerting_schedule_periodic_duration_seconds.bucket,count,,second,,The time taken to run the scheduler.,0,grafana,,, +grafana.alerting_schedule_periodic_duration_seconds.count,count,,second,,The time taken to run the scheduler.,0,grafana,,, +grafana.alerting_schedule_periodic_duration_seconds.sum,count,,second,,The time taken to run the scheduler.,0,grafana,,, +grafana.alerting_schedule_query_alert_rules_duration_seconds.bucket,count,,second,,The time taken to fetch alert rules from the database.,0,grafana,,, +grafana.alerting_schedule_query_alert_rules_duration_seconds.count,count,,second,,The time taken to fetch alert rules from the database.,0,grafana,,, +grafana.alerting_schedule_query_alert_rules_duration_seconds.sum,count,,second,,The time taken to fetch alert rules from the database.,0,grafana,,, +grafana.alerting_scheduler_behind_seconds,gauge,,second,,The total number of seconds the scheduler is behind.,0,grafana,,, +grafana.alerting_silences,gauge,,,,How many silences by state.,0,grafana,,, +grafana.alerting_silences_gc_duration_seconds.count,count,,second,,Duration of the last silence garbage collection cycle.,0,grafana,,, +grafana.alerting_silences_gc_duration_seconds.sum,count,,second,,Duration of the last silence garbage collection cycle.,0,grafana,,, +grafana.alerting_silences_gossip_messages_propagated.count,count,,,,Number of received gossip messages that have been further gossiped.,0,grafana,,, +grafana.alerting_silences_queries.count,count,,,,How many silence queries were received.,0,grafana,,, +grafana.alerting_silences_query_duration_seconds.bucket,count,,second,,Duration of silence query evaluation.,0,grafana,,, +grafana.alerting_silences_query_duration_seconds.count,count,,second,,Duration of silence query evaluation.,0,grafana,,, +grafana.alerting_silences_query_duration_seconds.sum,count,,second,,Duration of silence query evaluation.,0,grafana,,, +grafana.alerting_silences_query_errors.count,count,,,,How many silence received queries did not succeed.,0,grafana,,, +grafana.alerting_silences_snapshot_duration_seconds.count,count,,second,,Duration of the last silence snapshot.,0,grafana,,, +grafana.alerting_silences_snapshot_duration_seconds.sum,count,,second,,Duration of the last silence snapshot.,0,grafana,,, +grafana.alerting_silences_snapshot_size_bytes,gauge,,byte,,Size of the last silence snapshot in bytes.,0,grafana,,, +grafana.alerting_state_calculation_duration_seconds.bucket,count,,second,,The duration of calculation of a single state.,0,grafana,,, +grafana.alerting_state_calculation_duration_seconds.count,count,,second,,The duration of calculation of a single state.,0,grafana,,, +grafana.alerting_state_calculation_duration_seconds.sum,count,,second,,The duration of calculation of a single state.,0,grafana,,, +grafana.alerting_state_full_sync_duration_seconds.bucket,count,,second,,The duration of fully synchronizing the state with the database.,0,grafana,,, +grafana.alerting_state_full_sync_duration_seconds.count,count,,second,,The duration of fully synchronizing the state with the database.,0,grafana,,, +grafana.alerting_state_full_sync_duration_seconds.sum,count,,second,,The duration of fully synchronizing the state with the database.,0,grafana,,, +grafana.alerting_state_history_info,gauge,,,,Information about the state history store.,0,grafana,,, +grafana.alerting_state_history_writes_bytes.count,count,,byte,,The total number of bytes sent within a batch to the state history store. Only valid when using the Loki store.,0,grafana,,, +grafana.alerting_ticker_interval_seconds,gauge,,second,,Interval at which the ticker is meant to tick.,0,grafana,,, +grafana.alerting_ticker_last_consumed_tick_timestamp_seconds,gauge,,second,,Timestamp of the last consumed tick in seconds.,0,grafana,,, +grafana.alerting_ticker_next_tick_timestamp_seconds,gauge,,second,,Timestamp of the next tick in seconds before it is consumed.,0,grafana,,, +grafana.api_admin_user_created.count,count,,,,api admin user created counter,0,grafana,,, +grafana.api_dashboard_get_milliseconds.count,count,,millisecond,,summary for dashboard get duration,0,grafana,,, +grafana.api_dashboard_get_milliseconds.quantile,gauge,,millisecond,,summary for dashboard get duration,0,grafana,,, +grafana.api_dashboard_get_milliseconds.sum,count,,millisecond,,summary for dashboard get duration,0,grafana,,, +grafana.api_dashboard_save_milliseconds.count,count,,millisecond,,summary for dashboard save duration,0,grafana,,, +grafana.api_dashboard_save_milliseconds.quantile,gauge,,millisecond,,summary for dashboard save duration,0,grafana,,, +grafana.api_dashboard_save_milliseconds.sum,count,,millisecond,,summary for dashboard save duration,0,grafana,,, +grafana.api_dashboard_search_milliseconds.count,count,,millisecond,,summary for dashboard search duration,0,grafana,,, +grafana.api_dashboard_search_milliseconds.quantile,gauge,,millisecond,,summary for dashboard search duration,0,grafana,,, +grafana.api_dashboard_search_milliseconds.sum,count,,millisecond,,summary for dashboard search duration,0,grafana,,, +grafana.api_dashboard_snapshot_create.count,count,,,,dashboard snapshots created,0,grafana,,, +grafana.api_dashboard_snapshot_external.count,count,,,,external dashboard snapshots created,0,grafana,,, +grafana.api_dashboard_snapshot_get.count,count,,,,loaded dashboards,0,grafana,,, +grafana.api_dataproxy_request_all_milliseconds.count,count,,millisecond,,summary for dataproxy request duration,0,grafana,,, +grafana.api_dataproxy_request_all_milliseconds.quantile,gauge,,millisecond,,summary for dataproxy request duration,0,grafana,,, +grafana.api_dataproxy_request_all_milliseconds.sum,count,,millisecond,,summary for dataproxy request duration,0,grafana,,, +grafana.api_login_oauth.count,count,,,,api login oauth counter,0,grafana,,, +grafana.api_login_post.count,count,,,,api login post counter,0,grafana,,, +grafana.api_login_saml.count,count,,,,api login saml counter,0,grafana,,, +grafana.api_models_dashboard_insert.count,count,,,,dashboards inserted,0,grafana,,, +grafana.api_org_create.count,count,,,,api org created counter,0,grafana,,, +grafana.api_response_status.count,count,,,,api http response status,0,grafana,,, +grafana.api_user_signup_completed.count,count,,,,amount of users who completed the signup flow,0,grafana,,, +grafana.api_user_signup_invite.count,count,,,,amount of users who have been invited,0,grafana,,, +grafana.api_user_signup_started.count,count,,,,amount of users who started the signup flow,0,grafana,,, +grafana.apiserver_audit_event.count,count,,,,[ALPHA] Counter of audit events generated and sent to the audit backend.,0,grafana,,, +grafana.apiserver_audit_requests_rejected.count,count,,,,[ALPHA] Counter of apiserver requests rejected due to an error in audit logging backend.,0,grafana,,, +grafana.apiserver_client_certificate_expiration_seconds.bucket,count,,second,,[ALPHA] Distribution of the remaining lifetime on the certificate used to authenticate a request.,0,grafana,,, +grafana.apiserver_client_certificate_expiration_seconds.count,count,,second,,[ALPHA] Distribution of the remaining lifetime on the certificate used to authenticate a request.,0,grafana,,, +grafana.apiserver_client_certificate_expiration_seconds.sum,count,,second,,[ALPHA] Distribution of the remaining lifetime on the certificate used to authenticate a request.,0,grafana,,, +grafana.apiserver_current_inflight_requests,gauge,,,,[STABLE] Maximal number of currently used inflight request limit of this apiserver per request kind in last second.,0,grafana,,, +grafana.apiserver_envelope_encryption_dek_cache_fill_percent,gauge,,,,[ALPHA] Percent of the cache slots currently occupied by cached DEKs.,0,grafana,,, +grafana.apiserver_flowcontrol_seat_fair_frac,gauge,,,,[ALPHA] Fair fraction of server's concurrency to allocate to each priority level that can use it,0,grafana,,, +grafana.apiserver_kube_aggregator_x509_insecure_sha1.count,count,,,,"[ALPHA] Counts the number of requests to servers with insecure SHA1 signatures in their serving certificate OR the number of connection failures due to the insecure SHA1 signatures (either/or, based on the runtime environment)",0,grafana,,, +grafana.apiserver_kube_aggregator_x509_missing_san.count,count,,,,"[ALPHA] Counts the number of requests to servers missing SAN extension in their serving certificate OR the number of connection failures due to the lack of x509 certificate SAN extension missing (either/or, based on the runtime environment)",0,grafana,,, +grafana.apiserver_storage_data_key_generation_duration_seconds.bucket,count,,second,,[ALPHA] Latencies in seconds of data encryption key(DEK) generation operations.,0,grafana,,, +grafana.apiserver_storage_data_key_generation_duration_seconds.count,count,,second,,[ALPHA] Latencies in seconds of data encryption key(DEK) generation operations.,0,grafana,,, +grafana.apiserver_storage_data_key_generation_duration_seconds.sum,count,,second,,[ALPHA] Latencies in seconds of data encryption key(DEK) generation operations.,0,grafana,,, +grafana.apiserver_storage_data_key_generation_failures.count,count,,,,[ALPHA] Total number of failed data encryption key(DEK) generation operations.,0,grafana,,, +grafana.apiserver_storage_envelope_transformation_cache_misses.count,count,,,,[ALPHA] Total number of cache misses while accessing key decryption key(KEK).,0,grafana,,, +grafana.apiserver_storage_objects,gauge,,,,"[STABLE] Number of stored objects at the time of last check split by kind. In case of a fetching error, the value will be -1.",0,grafana,,, +grafana.apiserver_tls_handshake_errors.count,count,,,,[ALPHA] Number of requests dropped with 'TLS handshake error from' error,0,grafana,,, +grafana.apiserver_webhooks_x509_insecure_sha1.count,count,,,,"[ALPHA] Counts the number of requests to servers with insecure SHA1 signatures in their serving certificate OR the number of connection failures due to the insecure SHA1 signatures (either/or, based on the runtime environment)",0,grafana,,, +grafana.apiserver_webhooks_x509_missing_san.count,count,,,,"[ALPHA] Counts the number of requests to servers missing SAN extension in their serving certificate OR the number of connection failures due to the lack of x509 certificate SAN extension missing (either/or, based on the runtime environment)",0,grafana,,, +grafana.authn_authn_failed_authentication.count,count,,,,Number of failed authentications,0,grafana,,, +grafana.build_info,gauge,,,,"A metric with a constant '1' value labeled by version, revision, branch, and goversion from which Grafana was built",0,grafana,,, +grafana.build_timestamp,gauge,,,,A metric exposing when the binary was built in epoch,0,grafana,,, +grafana.cardinality_enforcement_unexpected_categorizations.count,count,,,,[ALPHA] The count of unexpected categorizations during cardinality enforcement.,0,grafana,,, +grafana.database_all_migrations_duration_seconds.bucket,count,,second,,Duration of the entire SQL migration process in seconds,0,grafana,,, +grafana.database_all_migrations_duration_seconds.count,count,,second,,Duration of the entire SQL migration process in seconds,0,grafana,,, +grafana.database_all_migrations_duration_seconds.sum,count,,second,,Duration of the entire SQL migration process in seconds,0,grafana,,, +grafana.database_conn_idle,gauge,,,,The number of idle connections,0,grafana,,, +grafana.database_conn_in_use,gauge,,,,The number of connections currently in use,0,grafana,,, +grafana.database_conn_max_idle_closed.count,count,,,,The total number of connections closed due to SetMaxIdleConns,0,grafana,,, +grafana.database_conn_max_idle_closed_seconds.count,count,,second,,The total number of connections closed due to SetConnMaxIdleTime,0,grafana,,, +grafana.database_conn_max_lifetime_closed.count,count,,,,The total number of connections closed due to SetConnMaxLifetime,0,grafana,,, +grafana.database_conn_max_open,gauge,,,,Maximum number of open connections to the database,0,grafana,,, +grafana.database_conn_open,gauge,,,,The number of established connections both in use and idle,0,grafana,,, +grafana.database_conn_wait_count.count,count,,,,The total number of connections waited for,0,grafana,,, +grafana.database_conn_wait_duration_seconds.count,count,,second,,The total time blocked waiting for a new connection,0,grafana,,, +grafana.database_migration_duration_seconds.bucket,count,,second,,Individual SQL migration duration in seconds,0,grafana,,, +grafana.database_migration_duration_seconds.count,count,,second,,Individual SQL migration duration in seconds,0,grafana,,, +grafana.database_migration_duration_seconds.sum,count,,second,,Individual SQL migration duration in seconds,0,grafana,,, +grafana.database_migrations.count,count,,,,Total number of SQL migrations,0,grafana,,, +grafana.db_datasource_query_by_id.count,count,,,,counter for getting datasource by id,0,grafana,,, +grafana.disabled_metrics.count,count,,,,[BETA] The count of disabled metrics.,0,grafana,,, +grafana.emails_sent.count,count,,,,Number of emails sent by Grafana,0,grafana,,, +grafana.emails_sent_failed.count,count,,,,Number of emails Grafana failed to send,0,grafana,,, +grafana.encryption_cache_reads.count,count,,,,A counter for encryption cache reads,0,grafana,,, +grafana.encryption_ops.count,count,,,,A counter for encryption operations,0,grafana,,, +grafana.environment_info,gauge,,,,A metric with a constant '1' value labeled by environment information about the running instance.,0,grafana,,, +grafana.feature_toggles_info,gauge,,,,info metric that exposes what feature toggles are enabled or not,0,grafana,,, +grafana.folder_id_api_count.count,count,,,,counter for folder id usage in api package,0,grafana,,, +grafana.folder_id_service_count.count,count,,,,counter for folder id usage in service package,0,grafana,,, +grafana.frontend_boot_css_time_seconds.bucket,count,,second,,Frontend boot initial css load,0,grafana,,, +grafana.frontend_boot_css_time_seconds.count,count,,second,,Frontend boot initial css load,0,grafana,,, +grafana.frontend_boot_css_time_seconds.sum,count,,second,,Frontend boot initial css load,0,grafana,,, +grafana.frontend_boot_first_contentful_paint_time_seconds.bucket,count,,second,,Frontend boot first contentful paint,0,grafana,,, +grafana.frontend_boot_first_contentful_paint_time_seconds.count,count,,second,,Frontend boot first contentful paint,0,grafana,,, +grafana.frontend_boot_first_contentful_paint_time_seconds.sum,count,,second,,Frontend boot first contentful paint,0,grafana,,, +grafana.frontend_boot_first_paint_time_seconds.bucket,count,,second,,Frontend boot first paint,0,grafana,,, +grafana.frontend_boot_first_paint_time_seconds.count,count,,second,,Frontend boot first paint,0,grafana,,, +grafana.frontend_boot_first_paint_time_seconds.sum,count,,second,,Frontend boot first paint,0,grafana,,, +grafana.frontend_boot_js_done_time_seconds.bucket,count,,second,,Frontend boot initial js load,0,grafana,,, +grafana.frontend_boot_js_done_time_seconds.count,count,,second,,Frontend boot initial js load,0,grafana,,, +grafana.frontend_boot_js_done_time_seconds.sum,count,,second,,Frontend boot initial js load,0,grafana,,, +grafana.frontend_boot_load_time_seconds.bucket,count,,second,,Frontend boot time measurement,0,grafana,,, +grafana.frontend_boot_load_time_seconds.count,count,,second,,Frontend boot time measurement,0,grafana,,, +grafana.frontend_boot_load_time_seconds.sum,count,,second,,Frontend boot time measurement,0,grafana,,, +grafana.frontend_plugins_preload_ms.bucket,count,,millisecond,,Frontend preload plugin time measurement,0,grafana,,, +grafana.frontend_plugins_preload_ms.count,count,,millisecond,,Frontend preload plugin time measurement,0,grafana,,, +grafana.frontend_plugins_preload_ms.sum,count,,millisecond,,Frontend preload plugin time measurement,0,grafana,,, +grafana.hidden_metrics.count,count,,,,[BETA] The count of hidden metrics.,0,grafana,,, +grafana.http_request_duration_seconds.bucket,count,,second,,Histogram of latencies for HTTP requests.,0,grafana,,, +grafana.http_request_duration_seconds.count,count,,second,,Histogram of latencies for HTTP requests.,0,grafana,,, +grafana.http_request_duration_seconds.sum,count,,second,,Histogram of latencies for HTTP requests.,0,grafana,,, +grafana.http_request_in_flight,gauge,,,,A gauge of requests currently being served by Grafana.,0,grafana,,, +grafana.idforwarding_idforwarding_failed_token_signing.count,count,,,,Number of failed token signings,0,grafana,,, +grafana.idforwarding_idforwarding_token_signing.count,count,,,,Number of token signings,0,grafana,,, +grafana.idforwarding_idforwarding_token_signing_duration_seconds.bucket,count,,second,,Histogram of token signing duration,0,grafana,,, +grafana.idforwarding_idforwarding_token_signing_duration_seconds.count,count,,second,,Histogram of token signing duration,0,grafana,,, +grafana.idforwarding_idforwarding_token_signing_duration_seconds.sum,count,,second,,Histogram of token signing duration,0,grafana,,, +grafana.idforwarding_idforwarding_token_signing_from_cache.count,count,,,,Number of signed tokens retrieved from cache,0,grafana,,, +grafana.index_server_index_size,gauge,,,,Size of the index in bytes - only for file-based indices,0,grafana,,, +grafana.instance_start.count,count,,,,counter for started instances,0,grafana,,, +grafana.ldap_users_sync_execution_time.count,count,,,,summary for LDAP users sync execution duration,0,grafana,,, +grafana.ldap_users_sync_execution_time.quantile,gauge,,,,summary for LDAP users sync execution duration,0,grafana,,, +grafana.ldap_users_sync_execution_time.sum,count,,,,summary for LDAP users sync execution duration,0,grafana,,, +grafana.live_broker_redis_pub_sub_dropped_messages.count,count,,,,Number of dropped messages on application level in Redis PUB/SUB.,0,grafana,,, +grafana.live_client_command_duration_seconds.count,count,,second,,Client command duration summary.,0,grafana,,, +grafana.live_client_command_duration_seconds.quantile,gauge,,second,,Client command duration summary.,0,grafana,,, +grafana.live_client_command_duration_seconds.sum,count,,second,,Client command duration summary.,0,grafana,,, +grafana.live_node_build,gauge,,,,Node build info.,0,grafana,,, +grafana.live_node_messages_received_count.count,count,,,,Number of messages received from broker.,0,grafana,,, +grafana.live_node_messages_sent_count.count,count,,,,Number of messages sent by node to broker.,0,grafana,,, +grafana.live_node_num_channels,gauge,,,,Number of channels with one or more subscribers.,0,grafana,,, +grafana.live_node_num_clients,gauge,,,,Number of clients connected.,0,grafana,,, +grafana.live_node_num_nodes,gauge,,,,Number of nodes in the cluster.,0,grafana,,, +grafana.live_node_num_subscriptions,gauge,,,,Number of subscriptions.,0,grafana,,, +grafana.live_node_num_users,gauge,,,,Number of unique users connected.,0,grafana,,, +grafana.live_node_pub_sub_lag_seconds.bucket,count,,second,,Pub sub lag in seconds,0,grafana,,, +grafana.live_node_pub_sub_lag_seconds.count,count,,second,,Pub sub lag in seconds,0,grafana,,, +grafana.live_node_pub_sub_lag_seconds.sum,count,,second,,Pub sub lag in seconds,0,grafana,,, +grafana.openmetrics.health,gauge,,,,Whether the check is able to connect to the metrics endpoint.,0,grafana,,, +grafana.page_response_status.count,count,,,,page http response status,0,grafana,,, +grafana.plugin_build_info,gauge,,,,"A metric with a constant '1' value labeled by pluginId, pluginType and version from which Grafana plugin was built",0,grafana,,, +grafana.plugin_target_info,gauge,,,,A metric with a constant '1' value labeled by pluginId and target,0,grafana,,, +grafana.plugins_preinstall.count,count,,,,The total amount of plugin preinstallations,0,grafana,,, +grafana.plugins_preinstall_duration_seconds.bucket,count,,second,,Plugin preinstallation duration,0,grafana,,, +grafana.plugins_preinstall_duration_seconds.count,count,,second,,Plugin preinstallation duration,0,grafana,,, +grafana.plugins_preinstall_duration_seconds.sum,count,,second,,Plugin preinstallation duration,0,grafana,,, +grafana.process_cpu_seconds.count,count,,second,,Total user and system CPU time spent in seconds.,0,grafana,,, +grafana.process_max_fds,gauge,,,,Maximum number of open file descriptors.,0,grafana,,, +grafana.process_network_receive_bytes.count,count,,byte,,Number of bytes received by the process over the network.,0,grafana,,, +grafana.process_network_transmit_bytes.count,count,,byte,,Number of bytes sent by the process over the network.,0,grafana,,, +grafana.process_open_fds,gauge,,,,Number of open file descriptors.,0,grafana,,, +grafana.process_resident_memory_bytes,gauge,,byte,,Resident memory size in bytes.,0,grafana,,, +grafana.process_start_time_seconds,gauge,,second,,Start time of the process since unix epoch in seconds.,0,grafana,,, +grafana.process_virtual_memory_bytes,gauge,,byte,,Virtual memory size in bytes.,0,grafana,,, +grafana.process_virtual_memory_max_bytes,gauge,,byte,,Maximum amount of virtual memory available in bytes.,0,grafana,,, +grafana.proxy_response_status.count,count,,,,proxy http response status,0,grafana,,, +grafana.public_dashboard_request_count.count,count,,,,counter for public dashboards requests,0,grafana,,, +grafana.registered_metrics.count,count,,,,[BETA] The count of registered metrics broken by stability level and deprecation version.,0,grafana,,, +grafana.rendering_queue_size,gauge,,,,size of rendering queue,0,grafana,,, +grafana.search_dashboard_search_failures_duration_seconds.bucket,count,,second,,,0,grafana,,, +grafana.search_dashboard_search_failures_duration_seconds.count,count,,second,,,0,grafana,,, +grafana.search_dashboard_search_failures_duration_seconds.sum,count,,second,,,0,grafana,,, +grafana.search_dashboard_search_successes_duration_seconds.bucket,count,,second,,,0,grafana,,, +grafana.search_dashboard_search_successes_duration_seconds.count,count,,second,,,0,grafana,,, +grafana.search_dashboard_search_successes_duration_seconds.sum,count,,second,,,0,grafana,,, +grafana.stat_active_users,gauge,,,,number of active users,0,grafana,,, +grafana.stat_failed_migrated_api_keys_to_sa_tokens,gauge,,,,total number of failed migrations of API keys to service account tokens,0,grafana,,, +grafana.stat_successfully_migrated_api_keys_to_sa_tokens,gauge,,,,total number of successful migrations of API keys to service account tokens,0,grafana,,, +grafana.stat_total_migrated_api_keys_to_sa_tokens,gauge,,,,total number of API keys to be migrated to service account tokens,0,grafana,,, +grafana.stat_total_orgs,gauge,,,,total amount of orgs,0,grafana,,, +grafana.stat_total_playlists,gauge,,,,total amount of playlists,0,grafana,,, +grafana.stat_total_service_account_tokens,gauge,,,,total amount of service account tokens,0,grafana,,, +grafana.stat_total_service_accounts,gauge,,,,total amount of service accounts,0,grafana,,, +grafana.stat_total_service_accounts_role_none,gauge,,,,total amount of service accounts with no role,0,grafana,,, +grafana.stat_total_teams,gauge,,,,total amount of teams,0,grafana,,, +grafana.stat_total_users,gauge,,,,total amount of users,0,grafana,,, +grafana.stat_totals_active_admins,gauge,,,,total amount of active admins,0,grafana,,, +grafana.stat_totals_active_editors,gauge,,,,total amount of active editors,0,grafana,,, +grafana.stat_totals_active_viewers,gauge,,,,total amount of active viewers,0,grafana,,, +grafana.stat_totals_admins,gauge,,,,total amount of admins,0,grafana,,, +grafana.stat_totals_alert_rules,gauge,,,,total amount of alert rules in the database,0,grafana,,, +grafana.stat_totals_annotations,gauge,,,,total amount of annotations in the database,0,grafana,,, +grafana.stat_totals_correlations,gauge,,,,total amount of correlations,0,grafana,,, +grafana.stat_totals_dashboard,gauge,,,,total amount of dashboards,0,grafana,,, +grafana.stat_totals_dashboard_versions,gauge,,,,total amount of dashboard versions in the database,0,grafana,,, +grafana.stat_totals_data_keys,gauge,,,,total amount of data keys in the database,0,grafana,,, +grafana.stat_totals_editors,gauge,,,,total amount of editors,0,grafana,,, +grafana.stat_totals_folder,gauge,,,,total amount of folders,0,grafana,,, +grafana.stat_totals_library_panels,gauge,,,,total amount of library panels in the database,0,grafana,,, +grafana.stat_totals_library_variables,gauge,,,,total amount of library variables in the database,0,grafana,,, +grafana.stat_totals_public_dashboard,gauge,,,,total amount of public dashboards,0,grafana,,, +grafana.stat_totals_rule_groups,gauge,,,,total amount of alert rule groups in the database,0,grafana,,, +grafana.stat_totals_viewers,gauge,,,,total amount of viewers,0,grafana,,, +grafana.storage_server_poller_query_latency_seconds.bucket,count,,second,,poller query latency,0,grafana,,, +grafana.storage_server_poller_query_latency_seconds.count,count,,second,,poller query latency,0,grafana,,, +grafana.storage_server_poller_query_latency_seconds.sum,count,,second,,poller query latency,0,grafana,,, diff --git a/grafana/pyproject.toml b/grafana/pyproject.toml new file mode 100644 index 0000000000..106af5c560 --- /dev/null +++ b/grafana/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = [ + "hatchling>=0.13.0", +] +build-backend = "hatchling.build" + +[project] +name = "datadog-grafana" +description = "The Grafana check" +readme = "README.md" +license = "BSD-3-Clause" +requires-python = ">=3.12" +keywords = [ + "datadog", + "datadog agent", + "datadog check", + "grafana", +] +authors = [ + { name = "Reuben Tan", email = "reubentjl@gmail.com" }, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: BSD License", + "Private :: Do Not Upload", + "Programming Language :: Python :: 3.12", + "Topic :: System :: Monitoring", +] +dependencies = [ + "datadog-checks-base>=37.16.0", +] +dynamic = [ + "version", +] + +[project.optional-dependencies] +deps = [] + +[project.urls] +Source = "https://github.com/DataDog/integrations-extras" + +[tool.hatch.version] +path = "datadog_checks/grafana/__about__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/datadog_checks", + "/tests", + "/manifest.json", +] + +[tool.hatch.build.targets.wheel] +include = [ + "/datadog_checks/grafana", +] +dev-mode-dirs = [ + ".", +] diff --git a/grafana/tests/__init__.py b/grafana/tests/__init__.py new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/grafana/tests/__init__.py @@ -0,0 +1 @@ + diff --git a/grafana/tests/common.py b/grafana/tests/common.py new file mode 100644 index 0000000000..14f31b6aea --- /dev/null +++ b/grafana/tests/common.py @@ -0,0 +1,270 @@ +METRICS = [ + "grafana.access_evaluation_count.count", + "grafana.access_evaluation_duration.bucket", + "grafana.access_evaluation_duration.count", + "grafana.access_evaluation_duration.sum", + "grafana.access_permissions_cache_usage.count", + "grafana.access_permissions_duration.bucket", + "grafana.access_permissions_duration.count", + "grafana.access_permissions_duration.sum", + "grafana.access_search_permissions_duration.bucket", + "grafana.access_search_permissions_duration.count", + "grafana.access_search_permissions_duration.sum", + "grafana.access_search_user_permissions_cache_usage.count", + "grafana.aggregator_discovery_aggregation_count.count", + "grafana.alerting_active_alerts", + "grafana.alerting_active_configurations", + "grafana.alerting_alertmanager_alerts", + "grafana.alerting_alertmanager_config_hash", + "grafana.alerting_alertmanager_config_match", + "grafana.alerting_alertmanager_config_match_re", + "grafana.alerting_alertmanager_config_matchers", + "grafana.alerting_alertmanager_config_object_matchers", + "grafana.alerting_alertmanager_config_size_bytes", + "grafana.alerting_alertmanager_inhibition_rules", + "grafana.alerting_alertmanager_integrations", + "grafana.alerting_alertmanager_receivers", + "grafana.alerting_alerts", + "grafana.alerting_alerts_invalid.count", + "grafana.alerting_alerts_received.count", + "grafana.alerting_discovered_configurations", + "grafana.alerting_dispatcher_aggregation_groups", + "grafana.alerting_dispatcher_alert_processing_duration_seconds.count", + "grafana.alerting_dispatcher_alert_processing_duration_seconds.sum", + "grafana.alerting_execution_time_milliseconds.count", + "grafana.alerting_execution_time_milliseconds.quantile", + "grafana.alerting_execution_time_milliseconds.sum", + "grafana.alerting_nflog_gc_duration_seconds.count", + "grafana.alerting_nflog_gc_duration_seconds.sum", + "grafana.alerting_nflog_gossip_messages_propagated.count", + "grafana.alerting_nflog_queries.count", + "grafana.alerting_nflog_query_duration_seconds.bucket", + "grafana.alerting_nflog_query_duration_seconds.count", + "grafana.alerting_nflog_query_duration_seconds.sum", + "grafana.alerting_nflog_query_errors.count", + "grafana.alerting_nflog_snapshot_duration_seconds.count", + "grafana.alerting_nflog_snapshot_duration_seconds.sum", + "grafana.alerting_nflog_snapshot_size_bytes", + "grafana.alerting_notification_latency_seconds.bucket", + "grafana.alerting_notification_latency_seconds.count", + "grafana.alerting_notification_latency_seconds.sum", + "grafana.alerting_remote_alertmanager_configuration_sync_failures.count", + "grafana.alerting_remote_alertmanager_configuration_syncs.count", + "grafana.alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds", + "grafana.alerting_remote_alertmanager_last_readiness_check_timestamp_seconds", + "grafana.alerting_remote_alertmanager_last_state_sync_timestamp_seconds", + "grafana.alerting_remote_alertmanager_state_sync_failures.count", + "grafana.alerting_remote_alertmanager_state_syncs.count", + "grafana.alerting_schedule_alert_rules", + "grafana.alerting_schedule_alert_rules_hash", + "grafana.alerting_schedule_periodic_duration_seconds.bucket", + "grafana.alerting_schedule_periodic_duration_seconds.count", + "grafana.alerting_schedule_periodic_duration_seconds.sum", + "grafana.alerting_schedule_query_alert_rules_duration_seconds.bucket", + "grafana.alerting_schedule_query_alert_rules_duration_seconds.count", + "grafana.alerting_schedule_query_alert_rules_duration_seconds.sum", + "grafana.alerting_scheduler_behind_seconds", + "grafana.alerting_silences", + "grafana.alerting_silences_gc_duration_seconds.count", + "grafana.alerting_silences_gc_duration_seconds.sum", + "grafana.alerting_silences_gossip_messages_propagated.count", + "grafana.alerting_silences_queries.count", + "grafana.alerting_silences_query_duration_seconds.bucket", + "grafana.alerting_silences_query_duration_seconds.count", + "grafana.alerting_silences_query_duration_seconds.sum", + "grafana.alerting_silences_query_errors.count", + "grafana.alerting_silences_snapshot_duration_seconds.count", + "grafana.alerting_silences_snapshot_duration_seconds.sum", + "grafana.alerting_silences_snapshot_size_bytes", + "grafana.alerting_state_calculation_duration_seconds.bucket", + "grafana.alerting_state_calculation_duration_seconds.count", + "grafana.alerting_state_calculation_duration_seconds.sum", + "grafana.alerting_state_full_sync_duration_seconds.bucket", + "grafana.alerting_state_full_sync_duration_seconds.count", + "grafana.alerting_state_full_sync_duration_seconds.sum", + "grafana.alerting_state_history_info", + "grafana.alerting_state_history_writes_bytes.count", + "grafana.alerting_ticker_interval_seconds", + "grafana.alerting_ticker_last_consumed_tick_timestamp_seconds", + "grafana.alerting_ticker_next_tick_timestamp_seconds", + "grafana.api_admin_user_created.count", + "grafana.api_dashboard_get_milliseconds.count", + "grafana.api_dashboard_get_milliseconds.quantile", + "grafana.api_dashboard_get_milliseconds.sum", + "grafana.api_dashboard_save_milliseconds.count", + "grafana.api_dashboard_save_milliseconds.quantile", + "grafana.api_dashboard_save_milliseconds.sum", + "grafana.api_dashboard_search_milliseconds.count", + "grafana.api_dashboard_search_milliseconds.quantile", + "grafana.api_dashboard_search_milliseconds.sum", + "grafana.api_dashboard_snapshot_create.count", + "grafana.api_dashboard_snapshot_external.count", + "grafana.api_dashboard_snapshot_get.count", + "grafana.api_dataproxy_request_all_milliseconds.count", + "grafana.api_dataproxy_request_all_milliseconds.quantile", + "grafana.api_dataproxy_request_all_milliseconds.sum", + "grafana.api_login_oauth.count", + "grafana.api_login_post.count", + "grafana.api_login_saml.count", + "grafana.api_models_dashboard_insert.count", + "grafana.api_org_create.count", + "grafana.api_response_status.count", + "grafana.api_user_signup_completed.count", + "grafana.api_user_signup_invite.count", + "grafana.api_user_signup_started.count", + "grafana.apiserver_audit_event.count", + "grafana.apiserver_audit_requests_rejected.count", + "grafana.apiserver_client_certificate_expiration_seconds.bucket", + "grafana.apiserver_client_certificate_expiration_seconds.count", + "grafana.apiserver_client_certificate_expiration_seconds.sum", + "grafana.apiserver_current_inflight_requests", + "grafana.apiserver_envelope_encryption_dek_cache_fill_percent", + "grafana.apiserver_flowcontrol_seat_fair_frac", + "grafana.apiserver_kube_aggregator_x509_insecure_sha1.count", + "grafana.apiserver_kube_aggregator_x509_missing_san.count", + "grafana.apiserver_storage_data_key_generation_duration_seconds.bucket", + "grafana.apiserver_storage_data_key_generation_duration_seconds.count", + "grafana.apiserver_storage_data_key_generation_duration_seconds.sum", + "grafana.apiserver_storage_data_key_generation_failures.count", + "grafana.apiserver_storage_envelope_transformation_cache_misses.count", + "grafana.apiserver_storage_objects", + "grafana.apiserver_tls_handshake_errors.count", + "grafana.apiserver_webhooks_x509_insecure_sha1.count", + "grafana.apiserver_webhooks_x509_missing_san.count", + "grafana.authn_authn_failed_authentication.count", + "grafana.build_info", + "grafana.build_timestamp", + "grafana.cardinality_enforcement_unexpected_categorizations.count", + "grafana.database_all_migrations_duration_seconds.bucket", + "grafana.database_all_migrations_duration_seconds.count", + "grafana.database_all_migrations_duration_seconds.sum", + "grafana.database_conn_idle", + "grafana.database_conn_in_use", + "grafana.database_conn_max_idle_closed.count", + "grafana.database_conn_max_idle_closed_seconds.count", + "grafana.database_conn_max_lifetime_closed.count", + "grafana.database_conn_max_open", + "grafana.database_conn_open", + "grafana.database_conn_wait_count.count", + "grafana.database_conn_wait_duration_seconds.count", + "grafana.database_migration_duration_seconds.bucket", + "grafana.database_migration_duration_seconds.count", + "grafana.database_migration_duration_seconds.sum", + "grafana.database_migrations.count", + "grafana.db_datasource_query_by_id.count", + "grafana.disabled_metrics.count", + "grafana.emails_sent.count", + "grafana.emails_sent_failed.count", + "grafana.encryption_cache_reads.count", + "grafana.encryption_ops.count", + "grafana.environment_info", + "grafana.feature_toggles_info", + "grafana.folder_id_api_count.count", + "grafana.folder_id_service_count.count", + "grafana.frontend_boot_css_time_seconds.bucket", + "grafana.frontend_boot_css_time_seconds.count", + "grafana.frontend_boot_css_time_seconds.sum", + "grafana.frontend_boot_first_contentful_paint_time_seconds.bucket", + "grafana.frontend_boot_first_contentful_paint_time_seconds.count", + "grafana.frontend_boot_first_contentful_paint_time_seconds.sum", + "grafana.frontend_boot_first_paint_time_seconds.bucket", + "grafana.frontend_boot_first_paint_time_seconds.count", + "grafana.frontend_boot_first_paint_time_seconds.sum", + "grafana.frontend_boot_js_done_time_seconds.bucket", + "grafana.frontend_boot_js_done_time_seconds.count", + "grafana.frontend_boot_js_done_time_seconds.sum", + "grafana.frontend_boot_load_time_seconds.bucket", + "grafana.frontend_boot_load_time_seconds.count", + "grafana.frontend_boot_load_time_seconds.sum", + "grafana.frontend_plugins_preload_ms.bucket", + "grafana.frontend_plugins_preload_ms.count", + "grafana.frontend_plugins_preload_ms.sum", + "grafana.hidden_metrics.count", + "grafana.http_request_duration_seconds.bucket", + "grafana.http_request_duration_seconds.count", + "grafana.http_request_duration_seconds.sum", + "grafana.http_request_in_flight", + "grafana.idforwarding_idforwarding_failed_token_signing.count", + "grafana.idforwarding_idforwarding_token_signing.count", + "grafana.idforwarding_idforwarding_token_signing_duration_seconds.bucket", + "grafana.idforwarding_idforwarding_token_signing_duration_seconds.count", + "grafana.idforwarding_idforwarding_token_signing_duration_seconds.sum", + "grafana.idforwarding_idforwarding_token_signing_from_cache.count", + "grafana.index_server_index_size", + "grafana.instance_start.count", + "grafana.ldap_users_sync_execution_time.count", + "grafana.ldap_users_sync_execution_time.quantile", + "grafana.ldap_users_sync_execution_time.sum", + "grafana.live_broker_redis_pub_sub_dropped_messages.count", + "grafana.live_client_command_duration_seconds.count", + "grafana.live_client_command_duration_seconds.quantile", + "grafana.live_client_command_duration_seconds.sum", + "grafana.live_node_build", + "grafana.live_node_messages_received_count.count", + "grafana.live_node_messages_sent_count.count", + "grafana.live_node_num_channels", + "grafana.live_node_num_clients", + "grafana.live_node_num_nodes", + "grafana.live_node_num_subscriptions", + "grafana.live_node_num_users", + "grafana.live_node_pub_sub_lag_seconds.bucket", + "grafana.live_node_pub_sub_lag_seconds.count", + "grafana.live_node_pub_sub_lag_seconds.sum", + "grafana.page_response_status.count", + "grafana.plugin_build_info", + "grafana.plugin_target_info", + "grafana.plugins_preinstall.count", + "grafana.plugins_preinstall_duration_seconds.bucket", + "grafana.plugins_preinstall_duration_seconds.count", + "grafana.plugins_preinstall_duration_seconds.sum", + "grafana.process_cpu_seconds.count", + "grafana.process_max_fds", + "grafana.process_network_receive_bytes.count", + "grafana.process_network_transmit_bytes.count", + "grafana.process_open_fds", + "grafana.process_resident_memory_bytes", + "grafana.process_start_time_seconds", + "grafana.process_virtual_memory_bytes", + "grafana.process_virtual_memory_max_bytes", + "grafana.proxy_response_status.count", + "grafana.public_dashboard_request_count.count", + "grafana.registered_metrics.count", + "grafana.rendering_queue_size", + "grafana.search_dashboard_search_failures_duration_seconds.bucket", + "grafana.search_dashboard_search_failures_duration_seconds.count", + "grafana.search_dashboard_search_failures_duration_seconds.sum", + "grafana.search_dashboard_search_successes_duration_seconds.bucket", + "grafana.search_dashboard_search_successes_duration_seconds.count", + "grafana.search_dashboard_search_successes_duration_seconds.sum", + "grafana.stat_active_users", + "grafana.stat_failed_migrated_api_keys_to_sa_tokens", + "grafana.stat_successfully_migrated_api_keys_to_sa_tokens", + "grafana.stat_total_migrated_api_keys_to_sa_tokens", + "grafana.stat_total_orgs", + "grafana.stat_total_playlists", + "grafana.stat_total_service_account_tokens", + "grafana.stat_total_service_accounts", + "grafana.stat_total_service_accounts_role_none", + "grafana.stat_total_teams", + "grafana.stat_total_users", + "grafana.stat_totals_active_admins", + "grafana.stat_totals_active_editors", + "grafana.stat_totals_active_viewers", + "grafana.stat_totals_admins", + "grafana.stat_totals_alert_rules", + "grafana.stat_totals_annotations", + "grafana.stat_totals_correlations", + "grafana.stat_totals_dashboard", + "grafana.stat_totals_dashboard_versions", + "grafana.stat_totals_data_keys", + "grafana.stat_totals_editors", + "grafana.stat_totals_folder", + "grafana.stat_totals_library_panels", + "grafana.stat_totals_library_variables", + "grafana.stat_totals_public_dashboard", + "grafana.stat_totals_rule_groups", + "grafana.stat_totals_viewers", + "grafana.storage_server_poller_query_latency_seconds.bucket", + "grafana.storage_server_poller_query_latency_seconds.count", + "grafana.storage_server_poller_query_latency_seconds.sum", +] diff --git a/grafana/tests/conftest.py b/grafana/tests/conftest.py new file mode 100644 index 0000000000..6d88371fd8 --- /dev/null +++ b/grafana/tests/conftest.py @@ -0,0 +1,36 @@ +import copy +from pathlib import Path + +import pytest + +from datadog_checks.dev import docker_run +from datadog_checks.dev.conditions import CheckEndpoints + +INSTANCE = {'openmetrics_endpoint': 'http://localhost:3000/metrics'} +EXTRA_METRICS = [ + {'grafana_alerting_alertmanager_alerts': 'alerting.alertmanager_alerts'}, + {'grafana_database_conn_idle': 'database.conn_idle'}, +] +INSTANCE_WITH_EXTRA_METRICS = {**INSTANCE, 'extra_metrics': EXTRA_METRICS} + + +@pytest.fixture(scope='session') +def dd_environment(): + compose_file = str(Path(__file__).parent.absolute() / 'docker' / 'docker-compose.yaml') + conditions = [ + CheckEndpoints(INSTANCE["openmetrics_endpoint"]), + ] + with docker_run(compose_file, conditions=conditions): + yield { + 'instances': [INSTANCE], + } + + +@pytest.fixture +def instance(): + return copy.deepcopy(INSTANCE) + + +@pytest.fixture +def instance_with_extra_metrics(): + return copy.deepcopy(INSTANCE_WITH_EXTRA_METRICS) diff --git a/grafana/tests/docker/docker-compose.yaml b/grafana/tests/docker/docker-compose.yaml new file mode 100644 index 0000000000..806f08f4b4 --- /dev/null +++ b/grafana/tests/docker/docker-compose.yaml @@ -0,0 +1,14 @@ +services: + grafana: + image: grafana/grafana-oss + container_name: grafana + restart: unless-stopped + ports: + - "3000:3000" + environment: + - GF_METRICS_ENABLED=true + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000"] + interval: 5s + timeout: 5s + retries: 30 diff --git a/grafana/tests/fixtures/grafana_metrics.txt b/grafana/tests/fixtures/grafana_metrics.txt new file mode 100644 index 0000000000..28e5fb5f00 --- /dev/null +++ b/grafana/tests/fixtures/grafana_metrics.txt @@ -0,0 +1,1966 @@ +# HELP deprecated_flags_inuse_total The number of deprecated flags currently set. +# TYPE deprecated_flags_inuse_total counter +deprecated_flags_inuse_total 0 +# HELP go_cgo_go_to_c_calls_calls_total Count of calls made from Go to C by the current process. Sourced from /cgo/go-to-c-calls:calls. +# TYPE go_cgo_go_to_c_calls_calls_total counter +go_cgo_go_to_c_calls_calls_total 44394 +# HELP go_cpu_classes_gc_mark_assist_cpu_seconds_total Estimated total CPU time goroutines spent performing GC tasks to assist the GC and prevent it from falling behind the application. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/gc/mark/assist:cpu-seconds. +# TYPE go_cpu_classes_gc_mark_assist_cpu_seconds_total counter +go_cpu_classes_gc_mark_assist_cpu_seconds_total 0.029678921 +# HELP go_cpu_classes_gc_mark_dedicated_cpu_seconds_total Estimated total CPU time spent performing GC tasks on processors (as defined by GOMAXPROCS) dedicated to those tasks. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/gc/mark/dedicated:cpu-seconds. +# TYPE go_cpu_classes_gc_mark_dedicated_cpu_seconds_total counter +go_cpu_classes_gc_mark_dedicated_cpu_seconds_total 0.974738905 +# HELP go_cpu_classes_gc_mark_idle_cpu_seconds_total Estimated total CPU time spent performing GC tasks on spare CPU resources that the Go scheduler could not otherwise find a use for. This should be subtracted from the total GC CPU time to obtain a measure of compulsory GC CPU time. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/gc/mark/idle:cpu-seconds. +# TYPE go_cpu_classes_gc_mark_idle_cpu_seconds_total counter +go_cpu_classes_gc_mark_idle_cpu_seconds_total 0.238025747 +# HELP go_cpu_classes_gc_pause_cpu_seconds_total Estimated total CPU time spent with the application paused by the GC. Even if only one thread is running during the pause, this is computed as GOMAXPROCS times the pause latency because nothing else can be executing. This is the exact sum of samples in /sched/pauses/total/gc:seconds if each sample is multiplied by GOMAXPROCS at the time it is taken. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/gc/pause:cpu-seconds. +# TYPE go_cpu_classes_gc_pause_cpu_seconds_total counter +go_cpu_classes_gc_pause_cpu_seconds_total 0.637339434 +# HELP go_cpu_classes_gc_total_cpu_seconds_total Estimated total CPU time spent performing GC tasks. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes/gc. Sourced from /cpu/classes/gc/total:cpu-seconds. +# TYPE go_cpu_classes_gc_total_cpu_seconds_total counter +go_cpu_classes_gc_total_cpu_seconds_total 1.879783007 +# HELP go_cpu_classes_idle_cpu_seconds_total Estimated total available CPU time not spent executing any Go or Go runtime code. In other words, the part of /cpu/classes/total:cpu-seconds that was unused. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/idle:cpu-seconds. +# TYPE go_cpu_classes_idle_cpu_seconds_total counter +go_cpu_classes_idle_cpu_seconds_total 16580.458981283 +# HELP go_cpu_classes_scavenge_assist_cpu_seconds_total Estimated total CPU time spent returning unused memory to the underlying platform in response eagerly in response to memory pressure. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/scavenge/assist:cpu-seconds. +# TYPE go_cpu_classes_scavenge_assist_cpu_seconds_total counter +go_cpu_classes_scavenge_assist_cpu_seconds_total 2.09e-07 +# HELP go_cpu_classes_scavenge_background_cpu_seconds_total Estimated total CPU time spent performing background tasks to return unused memory to the underlying platform. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/scavenge/background:cpu-seconds. +# TYPE go_cpu_classes_scavenge_background_cpu_seconds_total counter +go_cpu_classes_scavenge_background_cpu_seconds_total 0.002498475 +# HELP go_cpu_classes_scavenge_total_cpu_seconds_total Estimated total CPU time spent performing tasks that return unused memory to the underlying platform. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes/scavenge. Sourced from /cpu/classes/scavenge/total:cpu-seconds. +# TYPE go_cpu_classes_scavenge_total_cpu_seconds_total counter +go_cpu_classes_scavenge_total_cpu_seconds_total 0.002498684 +# HELP go_cpu_classes_total_cpu_seconds_total Estimated total available CPU time for user Go code or the Go runtime, as defined by GOMAXPROCS. In other words, GOMAXPROCS integrated over the wall-clock duration this process has been executing for. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sum of all metrics in /cpu/classes. Sourced from /cpu/classes/total:cpu-seconds. +# TYPE go_cpu_classes_total_cpu_seconds_total counter +go_cpu_classes_total_cpu_seconds_total 16592.55804756 +# HELP go_cpu_classes_user_cpu_seconds_total Estimated total CPU time spent running user Go code. This may also include some small amount of time spent in the Go runtime. This metric is an overestimate, and not directly comparable to system CPU time measurements. Compare only with other /cpu/classes metrics. Sourced from /cpu/classes/user:cpu-seconds. +# TYPE go_cpu_classes_user_cpu_seconds_total counter +go_cpu_classes_user_cpu_seconds_total 10.216784586 +# HELP go_gc_cycles_automatic_gc_cycles_total Count of completed GC cycles generated by the Go runtime. Sourced from /gc/cycles/automatic:gc-cycles. +# TYPE go_gc_cycles_automatic_gc_cycles_total counter +go_gc_cycles_automatic_gc_cycles_total 24 +# HELP go_gc_cycles_forced_gc_cycles_total Count of completed GC cycles forced by the application. Sourced from /gc/cycles/forced:gc-cycles. +# TYPE go_gc_cycles_forced_gc_cycles_total counter +go_gc_cycles_forced_gc_cycles_total 0 +# HELP go_gc_cycles_total_gc_cycles_total Count of all completed GC cycles. Sourced from /gc/cycles/total:gc-cycles. +# TYPE go_gc_cycles_total_gc_cycles_total counter +go_gc_cycles_total_gc_cycles_total 24 +# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles. +# TYPE go_gc_duration_seconds summary +go_gc_duration_seconds{quantile="0"} 6.5418e-05 +go_gc_duration_seconds{quantile="0.25"} 9.4459e-05 +go_gc_duration_seconds{quantile="0.5"} 0.001480292 +go_gc_duration_seconds{quantile="0.75"} 0.004652458 +go_gc_duration_seconds{quantile="1"} 0.006809624 +go_gc_duration_seconds_sum 0.053720542 +go_gc_duration_seconds_count 24 +# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent. +# TYPE go_gc_gogc_percent gauge +go_gc_gogc_percent 100 +# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes. +# TYPE go_gc_gomemlimit_bytes gauge +go_gc_gomemlimit_bytes 9.223372036854776e+18 +# HELP go_gc_heap_allocs_by_size_bytes Distribution of heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by /gc/heap/tiny/allocs:objects, only tiny blocks. Sourced from /gc/heap/allocs-by-size:bytes. +# TYPE go_gc_heap_allocs_by_size_bytes histogram +go_gc_heap_allocs_by_size_bytes_bucket{le="8.999999999999998"} 140675 +go_gc_heap_allocs_by_size_bytes_bucket{le="24.999999999999996"} 1.166474e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="64.99999999999999"} 1.810272e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="144.99999999999997"} 2.349029e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="320.99999999999994"} 2.503568e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="704.9999999999999"} 2.582892e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="1536.9999999999998"} 2.598481e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="3200.9999999999995"} 2.604376e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="6528.999999999999"} 2.607889e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="13568.999999999998"} 2.609696e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="27264.999999999996"} 2.610812e+06 +go_gc_heap_allocs_by_size_bytes_bucket{le="123"} 2.611813e+06 +go_gc_heap_allocs_by_size_bytes_sum 3.43416336e+08 +go_gc_heap_allocs_by_size_bytes_count 2.611813e+06 +# HELP go_gc_heap_allocs_bytes_total Cumulative sum of memory allocated to the heap by the application. Sourced from /gc/heap/allocs:bytes. +# TYPE go_gc_heap_allocs_bytes_total counter +go_gc_heap_allocs_bytes_total 3.43416336e+08 +# HELP go_gc_heap_allocs_objects_total Cumulative count of heap allocations triggered by the application. Note that this does not include tiny objects as defined by /gc/heap/tiny/allocs:objects, only tiny blocks. Sourced from /gc/heap/allocs:objects. +# TYPE go_gc_heap_allocs_objects_total counter +go_gc_heap_allocs_objects_total 2.611813e+06 +# HELP go_gc_heap_frees_by_size_bytes Distribution of freed heap allocations by approximate size. Bucket counts increase monotonically. Note that this does not include tiny objects as defined by /gc/heap/tiny/allocs:objects, only tiny blocks. Sourced from /gc/heap/frees-by-size:bytes. +# TYPE go_gc_heap_frees_by_size_bytes histogram +go_gc_heap_frees_by_size_bytes_bucket{le="8.999999999999998"} 131818 +go_gc_heap_frees_by_size_bytes_bucket{le="24.999999999999996"} 1.074535e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="64.99999999999999"} 1.626261e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="144.99999999999997"} 2.116689e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="320.99999999999994"} 2.257336e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="704.9999999999999"} 2.324596e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="1536.9999999999998"} 2.338462e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="3200.9999999999995"} 2.34326e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="6528.999999999999"} 2.346244e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="13568.999999999998"} 2.347693e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="27264.999999999996"} 2.348613e+06 +go_gc_heap_frees_by_size_bytes_bucket{le="123"} 2.349522e+06 +go_gc_heap_frees_by_size_bytes_sum 2.98929024e+08 +go_gc_heap_frees_by_size_bytes_count 2.349522e+06 +# HELP go_gc_heap_frees_bytes_total Cumulative sum of heap memory freed by the garbage collector. Sourced from /gc/heap/frees:bytes. +# TYPE go_gc_heap_frees_bytes_total counter +go_gc_heap_frees_bytes_total 2.98929024e+08 +# HELP go_gc_heap_frees_objects_total Cumulative count of heap allocations whose storage was freed by the garbage collector. Note that this does not include tiny objects as defined by /gc/heap/tiny/allocs:objects, only tiny blocks. Sourced from /gc/heap/frees:objects. +# TYPE go_gc_heap_frees_objects_total counter +go_gc_heap_frees_objects_total 2.349522e+06 +# HELP go_gc_heap_goal_bytes Heap size target for the end of the GC cycle. Sourced from /gc/heap/goal:bytes. +# TYPE go_gc_heap_goal_bytes gauge +go_gc_heap_goal_bytes 8.4839346e+07 +# HELP go_gc_heap_live_bytes Heap memory occupied by live objects that were marked by the previous GC. Sourced from /gc/heap/live:bytes. +# TYPE go_gc_heap_live_bytes gauge +go_gc_heap_live_bytes 4.1214104e+07 +# HELP go_gc_heap_objects_objects Number of objects, live or unswept, occupying heap memory. Sourced from /gc/heap/objects:objects. +# TYPE go_gc_heap_objects_objects gauge +go_gc_heap_objects_objects 262291 +# HELP go_gc_heap_tiny_allocs_objects_total Count of small allocations that are packed together into blocks. These allocations are counted separately from other allocations because each individual allocation is not tracked by the runtime, only their block. Each block is already accounted for in allocs-by-size and frees-by-size. Sourced from /gc/heap/tiny/allocs:objects. +# TYPE go_gc_heap_tiny_allocs_objects_total counter +go_gc_heap_tiny_allocs_objects_total 282523 +# HELP go_gc_limiter_last_enabled_gc_cycle GC cycle the last time the GC CPU limiter was enabled. This metric is useful for diagnosing the root cause of an out-of-memory error, because the limiter trades memory for CPU time when the GC's CPU time gets too high. This is most likely to occur with use of SetMemoryLimit. The first GC cycle is cycle 1, so a value of 0 indicates that it was never enabled. Sourced from /gc/limiter/last-enabled:gc-cycle. +# TYPE go_gc_limiter_last_enabled_gc_cycle gauge +go_gc_limiter_last_enabled_gc_cycle 0 +# HELP go_gc_pauses_seconds Deprecated. Prefer the identical /sched/pauses/total/gc:seconds. Sourced from /gc/pauses:seconds. +# TYPE go_gc_pauses_seconds histogram +go_gc_pauses_seconds_bucket{le="6.399999999999999e-08"} 0 +go_gc_pauses_seconds_bucket{le="6.399999999999999e-07"} 0 +go_gc_pauses_seconds_bucket{le="7.167999999999999e-06"} 2 +go_gc_pauses_seconds_bucket{le="8.191999999999999e-05"} 32 +go_gc_pauses_seconds_bucket{le="0.0009175039999999999"} 36 +go_gc_pauses_seconds_bucket{le="0.010485759999999998"} 48 +go_gc_pauses_seconds_bucket{le="0.11744051199999998"} 48 +go_gc_pauses_seconds_bucket{le="123"} 48 +go_gc_pauses_seconds_sum 0.011554047999999999 +go_gc_pauses_seconds_count 48 +# HELP go_gc_scan_globals_bytes The total amount of global variable space that is scannable. Sourced from /gc/scan/globals:bytes. +# TYPE go_gc_scan_globals_bytes gauge +go_gc_scan_globals_bytes 2.29693e+06 +# HELP go_gc_scan_heap_bytes The total amount of heap space that is scannable. Sourced from /gc/scan/heap:bytes. +# TYPE go_gc_scan_heap_bytes gauge +go_gc_scan_heap_bytes 3.0098744e+07 +# HELP go_gc_scan_stack_bytes The number of bytes of stack that were scanned last GC cycle. Sourced from /gc/scan/stack:bytes. +# TYPE go_gc_scan_stack_bytes gauge +go_gc_scan_stack_bytes 114208 +# HELP go_gc_scan_total_bytes The total amount space that is scannable. Sum of all metrics in /gc/scan. Sourced from /gc/scan/total:bytes. +# TYPE go_gc_scan_total_bytes gauge +go_gc_scan_total_bytes 3.2509882e+07 +# HELP go_gc_stack_starting_size_bytes The stack size of new goroutines. Sourced from /gc/stack/starting-size:bytes. +# TYPE go_gc_stack_starting_size_bytes gauge +go_gc_stack_starting_size_bytes 2048 +# HELP go_godebug_non_default_behavior_asynctimerchan_events_total The number of non-default behaviors executed by the time package due to a non-default GODEBUG=asynctimerchan=... setting. Sourced from /godebug/non-default-behavior/asynctimerchan:events. +# TYPE go_godebug_non_default_behavior_asynctimerchan_events_total counter +go_godebug_non_default_behavior_asynctimerchan_events_total 0 +# HELP go_godebug_non_default_behavior_execerrdot_events_total The number of non-default behaviors executed by the os/exec package due to a non-default GODEBUG=execerrdot=... setting. Sourced from /godebug/non-default-behavior/execerrdot:events. +# TYPE go_godebug_non_default_behavior_execerrdot_events_total counter +go_godebug_non_default_behavior_execerrdot_events_total 0 +# HELP go_godebug_non_default_behavior_gocachehash_events_total The number of non-default behaviors executed by the cmd/go package due to a non-default GODEBUG=gocachehash=... setting. Sourced from /godebug/non-default-behavior/gocachehash:events. +# TYPE go_godebug_non_default_behavior_gocachehash_events_total counter +go_godebug_non_default_behavior_gocachehash_events_total 0 +# HELP go_godebug_non_default_behavior_gocachetest_events_total The number of non-default behaviors executed by the cmd/go package due to a non-default GODEBUG=gocachetest=... setting. Sourced from /godebug/non-default-behavior/gocachetest:events. +# TYPE go_godebug_non_default_behavior_gocachetest_events_total counter +go_godebug_non_default_behavior_gocachetest_events_total 0 +# HELP go_godebug_non_default_behavior_gocacheverify_events_total The number of non-default behaviors executed by the cmd/go package due to a non-default GODEBUG=gocacheverify=... setting. Sourced from /godebug/non-default-behavior/gocacheverify:events. +# TYPE go_godebug_non_default_behavior_gocacheverify_events_total counter +go_godebug_non_default_behavior_gocacheverify_events_total 0 +# HELP go_godebug_non_default_behavior_gotestjsonbuildtext_events_total The number of non-default behaviors executed by the cmd/go package due to a non-default GODEBUG=gotestjsonbuildtext=... setting. Sourced from /godebug/non-default-behavior/gotestjsonbuildtext:events. +# TYPE go_godebug_non_default_behavior_gotestjsonbuildtext_events_total counter +go_godebug_non_default_behavior_gotestjsonbuildtext_events_total 0 +# HELP go_godebug_non_default_behavior_gotypesalias_events_total The number of non-default behaviors executed by the go/types package due to a non-default GODEBUG=gotypesalias=... setting. Sourced from /godebug/non-default-behavior/gotypesalias:events. +# TYPE go_godebug_non_default_behavior_gotypesalias_events_total counter +go_godebug_non_default_behavior_gotypesalias_events_total 0 +# HELP go_godebug_non_default_behavior_http2client_events_total The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=http2client=... setting. Sourced from /godebug/non-default-behavior/http2client:events. +# TYPE go_godebug_non_default_behavior_http2client_events_total counter +go_godebug_non_default_behavior_http2client_events_total 0 +# HELP go_godebug_non_default_behavior_http2server_events_total The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=http2server=... setting. Sourced from /godebug/non-default-behavior/http2server:events. +# TYPE go_godebug_non_default_behavior_http2server_events_total counter +go_godebug_non_default_behavior_http2server_events_total 0 +# HELP go_godebug_non_default_behavior_httplaxcontentlength_events_total The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=httplaxcontentlength=... setting. Sourced from /godebug/non-default-behavior/httplaxcontentlength:events. +# TYPE go_godebug_non_default_behavior_httplaxcontentlength_events_total counter +go_godebug_non_default_behavior_httplaxcontentlength_events_total 0 +# HELP go_godebug_non_default_behavior_httpmuxgo121_events_total The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=httpmuxgo121=... setting. Sourced from /godebug/non-default-behavior/httpmuxgo121:events. +# TYPE go_godebug_non_default_behavior_httpmuxgo121_events_total counter +go_godebug_non_default_behavior_httpmuxgo121_events_total 0 +# HELP go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total The number of non-default behaviors executed by the net/http package due to a non-default GODEBUG=httpservecontentkeepheaders=... setting. Sourced from /godebug/non-default-behavior/httpservecontentkeepheaders:events. +# TYPE go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total counter +go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total 0 +# HELP go_godebug_non_default_behavior_installgoroot_events_total The number of non-default behaviors executed by the go/build package due to a non-default GODEBUG=installgoroot=... setting. Sourced from /godebug/non-default-behavior/installgoroot:events. +# TYPE go_godebug_non_default_behavior_installgoroot_events_total counter +go_godebug_non_default_behavior_installgoroot_events_total 0 +# HELP go_godebug_non_default_behavior_multipartmaxheaders_events_total The number of non-default behaviors executed by the mime/multipart package due to a non-default GODEBUG=multipartmaxheaders=... setting. Sourced from /godebug/non-default-behavior/multipartmaxheaders:events. +# TYPE go_godebug_non_default_behavior_multipartmaxheaders_events_total counter +go_godebug_non_default_behavior_multipartmaxheaders_events_total 0 +# HELP go_godebug_non_default_behavior_multipartmaxparts_events_total The number of non-default behaviors executed by the mime/multipart package due to a non-default GODEBUG=multipartmaxparts=... setting. Sourced from /godebug/non-default-behavior/multipartmaxparts:events. +# TYPE go_godebug_non_default_behavior_multipartmaxparts_events_total counter +go_godebug_non_default_behavior_multipartmaxparts_events_total 0 +# HELP go_godebug_non_default_behavior_multipathtcp_events_total The number of non-default behaviors executed by the net package due to a non-default GODEBUG=multipathtcp=... setting. Sourced from /godebug/non-default-behavior/multipathtcp:events. +# TYPE go_godebug_non_default_behavior_multipathtcp_events_total counter +go_godebug_non_default_behavior_multipathtcp_events_total 0 +# HELP go_godebug_non_default_behavior_netedns0_events_total The number of non-default behaviors executed by the net package due to a non-default GODEBUG=netedns0=... setting. Sourced from /godebug/non-default-behavior/netedns0:events. +# TYPE go_godebug_non_default_behavior_netedns0_events_total counter +go_godebug_non_default_behavior_netedns0_events_total 0 +# HELP go_godebug_non_default_behavior_panicnil_events_total The number of non-default behaviors executed by the runtime package due to a non-default GODEBUG=panicnil=... setting. Sourced from /godebug/non-default-behavior/panicnil:events. +# TYPE go_godebug_non_default_behavior_panicnil_events_total counter +go_godebug_non_default_behavior_panicnil_events_total 0 +# HELP go_godebug_non_default_behavior_randautoseed_events_total The number of non-default behaviors executed by the math/rand package due to a non-default GODEBUG=randautoseed=... setting. Sourced from /godebug/non-default-behavior/randautoseed:events. +# TYPE go_godebug_non_default_behavior_randautoseed_events_total counter +go_godebug_non_default_behavior_randautoseed_events_total 0 +# HELP go_godebug_non_default_behavior_randseednop_events_total The number of non-default behaviors executed by the math/rand package due to a non-default GODEBUG=randseednop=... setting. Sourced from /godebug/non-default-behavior/randseednop:events. +# TYPE go_godebug_non_default_behavior_randseednop_events_total counter +go_godebug_non_default_behavior_randseednop_events_total 0 +# HELP go_godebug_non_default_behavior_rsa1024min_events_total The number of non-default behaviors executed by the crypto/rsa package due to a non-default GODEBUG=rsa1024min=... setting. Sourced from /godebug/non-default-behavior/rsa1024min:events. +# TYPE go_godebug_non_default_behavior_rsa1024min_events_total counter +go_godebug_non_default_behavior_rsa1024min_events_total 0 +# HELP go_godebug_non_default_behavior_tarinsecurepath_events_total The number of non-default behaviors executed by the archive/tar package due to a non-default GODEBUG=tarinsecurepath=... setting. Sourced from /godebug/non-default-behavior/tarinsecurepath:events. +# TYPE go_godebug_non_default_behavior_tarinsecurepath_events_total counter +go_godebug_non_default_behavior_tarinsecurepath_events_total 0 +# HELP go_godebug_non_default_behavior_tls10server_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=tls10server=... setting. Sourced from /godebug/non-default-behavior/tls10server:events. +# TYPE go_godebug_non_default_behavior_tls10server_events_total counter +go_godebug_non_default_behavior_tls10server_events_total 0 +# HELP go_godebug_non_default_behavior_tls3des_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=tls3des=... setting. Sourced from /godebug/non-default-behavior/tls3des:events. +# TYPE go_godebug_non_default_behavior_tls3des_events_total counter +go_godebug_non_default_behavior_tls3des_events_total 0 +# HELP go_godebug_non_default_behavior_tlsmaxrsasize_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=tlsmaxrsasize=... setting. Sourced from /godebug/non-default-behavior/tlsmaxrsasize:events. +# TYPE go_godebug_non_default_behavior_tlsmaxrsasize_events_total counter +go_godebug_non_default_behavior_tlsmaxrsasize_events_total 0 +# HELP go_godebug_non_default_behavior_tlsrsakex_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=tlsrsakex=... setting. Sourced from /godebug/non-default-behavior/tlsrsakex:events. +# TYPE go_godebug_non_default_behavior_tlsrsakex_events_total counter +go_godebug_non_default_behavior_tlsrsakex_events_total 0 +# HELP go_godebug_non_default_behavior_tlsunsafeekm_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=tlsunsafeekm=... setting. Sourced from /godebug/non-default-behavior/tlsunsafeekm:events. +# TYPE go_godebug_non_default_behavior_tlsunsafeekm_events_total counter +go_godebug_non_default_behavior_tlsunsafeekm_events_total 0 +# HELP go_godebug_non_default_behavior_winreadlinkvolume_events_total The number of non-default behaviors executed by the os package due to a non-default GODEBUG=winreadlinkvolume=... setting. Sourced from /godebug/non-default-behavior/winreadlinkvolume:events. +# TYPE go_godebug_non_default_behavior_winreadlinkvolume_events_total counter +go_godebug_non_default_behavior_winreadlinkvolume_events_total 0 +# HELP go_godebug_non_default_behavior_winsymlink_events_total The number of non-default behaviors executed by the os package due to a non-default GODEBUG=winsymlink=... setting. Sourced from /godebug/non-default-behavior/winsymlink:events. +# TYPE go_godebug_non_default_behavior_winsymlink_events_total counter +go_godebug_non_default_behavior_winsymlink_events_total 0 +# HELP go_godebug_non_default_behavior_x509keypairleaf_events_total The number of non-default behaviors executed by the crypto/tls package due to a non-default GODEBUG=x509keypairleaf=... setting. Sourced from /godebug/non-default-behavior/x509keypairleaf:events. +# TYPE go_godebug_non_default_behavior_x509keypairleaf_events_total counter +go_godebug_non_default_behavior_x509keypairleaf_events_total 0 +# HELP go_godebug_non_default_behavior_x509negativeserial_events_total The number of non-default behaviors executed by the crypto/x509 package due to a non-default GODEBUG=x509negativeserial=... setting. Sourced from /godebug/non-default-behavior/x509negativeserial:events. +# TYPE go_godebug_non_default_behavior_x509negativeserial_events_total counter +go_godebug_non_default_behavior_x509negativeserial_events_total 0 +# HELP go_godebug_non_default_behavior_x509rsacrt_events_total The number of non-default behaviors executed by the crypto/x509 package due to a non-default GODEBUG=x509rsacrt=... setting. Sourced from /godebug/non-default-behavior/x509rsacrt:events. +# TYPE go_godebug_non_default_behavior_x509rsacrt_events_total counter +go_godebug_non_default_behavior_x509rsacrt_events_total 0 +# HELP go_godebug_non_default_behavior_x509usefallbackroots_events_total The number of non-default behaviors executed by the crypto/x509 package due to a non-default GODEBUG=x509usefallbackroots=... setting. Sourced from /godebug/non-default-behavior/x509usefallbackroots:events. +# TYPE go_godebug_non_default_behavior_x509usefallbackroots_events_total counter +go_godebug_non_default_behavior_x509usefallbackroots_events_total 0 +# HELP go_godebug_non_default_behavior_x509usepolicies_events_total The number of non-default behaviors executed by the crypto/x509 package due to a non-default GODEBUG=x509usepolicies=... setting. Sourced from /godebug/non-default-behavior/x509usepolicies:events. +# TYPE go_godebug_non_default_behavior_x509usepolicies_events_total counter +go_godebug_non_default_behavior_x509usepolicies_events_total 0 +# HELP go_godebug_non_default_behavior_zipinsecurepath_events_total The number of non-default behaviors executed by the archive/zip package due to a non-default GODEBUG=zipinsecurepath=... setting. Sourced from /godebug/non-default-behavior/zipinsecurepath:events. +# TYPE go_godebug_non_default_behavior_zipinsecurepath_events_total counter +go_godebug_non_default_behavior_zipinsecurepath_events_total 0 +# HELP go_goroutines Number of goroutines that currently exist. +# TYPE go_goroutines gauge +go_goroutines 189 +# HELP go_info Information about the Go environment. +# TYPE go_info gauge +go_info{version="go1.24.4"} 1 +# HELP go_memory_classes_heap_free_bytes Memory that is completely free and eligible to be returned to the underlying system, but has not been. This metric is the runtime's estimate of free address space that is backed by physical memory. Sourced from /memory/classes/heap/free:bytes. +# TYPE go_memory_classes_heap_free_bytes gauge +go_memory_classes_heap_free_bytes 9.95328e+06 +# HELP go_memory_classes_heap_objects_bytes Memory occupied by live objects and dead objects that have not yet been marked free by the garbage collector. Sourced from /memory/classes/heap/objects:bytes. +# TYPE go_memory_classes_heap_objects_bytes gauge +go_memory_classes_heap_objects_bytes 4.4487312e+07 +# HELP go_memory_classes_heap_released_bytes Memory that is completely free and has been returned to the underlying system. This metric is the runtime's estimate of free address space that is still mapped into the process, but is not backed by physical memory. Sourced from /memory/classes/heap/released:bytes. +# TYPE go_memory_classes_heap_released_bytes gauge +go_memory_classes_heap_released_bytes 1.8604032e+07 +# HELP go_memory_classes_heap_stacks_bytes Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. Currently, this represents all stack memory for goroutines. It also includes all OS thread stacks in non-cgo programs. Note that stacks may be allocated differently in the future, and this may change. Sourced from /memory/classes/heap/stacks:bytes. +# TYPE go_memory_classes_heap_stacks_bytes gauge +go_memory_classes_heap_stacks_bytes 1.998848e+06 +# HELP go_memory_classes_heap_unused_bytes Memory that is reserved for heap objects but is not currently used to hold heap objects. Sourced from /memory/classes/heap/unused:bytes. +# TYPE go_memory_classes_heap_unused_bytes gauge +go_memory_classes_heap_unused_bytes 1.7231216e+07 +# HELP go_memory_classes_metadata_mcache_free_bytes Memory that is reserved for runtime mcache structures, but not in-use. Sourced from /memory/classes/metadata/mcache/free:bytes. +# TYPE go_memory_classes_metadata_mcache_free_bytes gauge +go_memory_classes_metadata_mcache_free_bytes 1208 +# HELP go_memory_classes_metadata_mcache_inuse_bytes Memory that is occupied by runtime mcache structures that are currently being used. Sourced from /memory/classes/metadata/mcache/inuse:bytes. +# TYPE go_memory_classes_metadata_mcache_inuse_bytes gauge +go_memory_classes_metadata_mcache_inuse_bytes 14496 +# HELP go_memory_classes_metadata_mspan_free_bytes Memory that is reserved for runtime mspan structures, but not in-use. Sourced from /memory/classes/metadata/mspan/free:bytes. +# TYPE go_memory_classes_metadata_mspan_free_bytes gauge +go_memory_classes_metadata_mspan_free_bytes 176800 +# HELP go_memory_classes_metadata_mspan_inuse_bytes Memory that is occupied by runtime mspan structures that are currently being used. Sourced from /memory/classes/metadata/mspan/inuse:bytes. +# TYPE go_memory_classes_metadata_mspan_inuse_bytes gauge +go_memory_classes_metadata_mspan_inuse_bytes 949280 +# HELP go_memory_classes_metadata_other_bytes Memory that is reserved for or used to hold runtime metadata. Sourced from /memory/classes/metadata/other:bytes. +# TYPE go_memory_classes_metadata_other_bytes gauge +go_memory_classes_metadata_other_bytes 4.633568e+06 +# HELP go_memory_classes_os_stacks_bytes Stack memory allocated by the underlying operating system. In non-cgo programs this metric is currently zero. This may change in the future.In cgo programs this metric includes OS thread stacks allocated directly from the OS. Currently, this only accounts for one stack in c-shared and c-archive build modes, and other sources of stacks from the OS are not measured. This too may change in the future. Sourced from /memory/classes/os-stacks:bytes. +# TYPE go_memory_classes_os_stacks_bytes gauge +go_memory_classes_os_stacks_bytes 0 +# HELP go_memory_classes_other_bytes Memory used by execution trace buffers, structures for debugging the runtime, finalizer and profiler specials, and more. Sourced from /memory/classes/other:bytes. +# TYPE go_memory_classes_other_bytes gauge +go_memory_classes_other_bytes 2.390283e+06 +# HELP go_memory_classes_profiling_buckets_bytes Memory that is used by the stack trace hash map used for profiling. Sourced from /memory/classes/profiling/buckets:bytes. +# TYPE go_memory_classes_profiling_buckets_bytes gauge +go_memory_classes_profiling_buckets_bytes 1.624085e+06 +# HELP go_memory_classes_total_bytes All memory mapped by the Go runtime into the current process as read-write. Note that this does not include memory mapped by code called via cgo or via the syscall package. Sum of all metrics in /memory/classes. Sourced from /memory/classes/total:bytes. +# TYPE go_memory_classes_total_bytes gauge +go_memory_classes_total_bytes 1.02064408e+08 +# HELP go_memstats_alloc_bytes Number of bytes allocated in heap and currently in use. Equals to /memory/classes/heap/objects:bytes. +# TYPE go_memstats_alloc_bytes gauge +go_memstats_alloc_bytes 4.4487312e+07 +# HELP go_memstats_alloc_bytes_total Total number of bytes allocated in heap until now, even if released already. Equals to /gc/heap/allocs:bytes. +# TYPE go_memstats_alloc_bytes_total counter +go_memstats_alloc_bytes_total 3.43416336e+08 +# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table. Equals to /memory/classes/profiling/buckets:bytes. +# TYPE go_memstats_buck_hash_sys_bytes gauge +go_memstats_buck_hash_sys_bytes 1.624085e+06 +# HELP go_memstats_frees_total Total number of heap objects frees. Equals to /gc/heap/frees:objects + /gc/heap/tiny/allocs:objects. +# TYPE go_memstats_frees_total counter +go_memstats_frees_total 2.632045e+06 +# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata. Equals to /memory/classes/metadata/other:bytes. +# TYPE go_memstats_gc_sys_bytes gauge +go_memstats_gc_sys_bytes 4.633568e+06 +# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and currently in use, same as go_memstats_alloc_bytes. Equals to /memory/classes/heap/objects:bytes. +# TYPE go_memstats_heap_alloc_bytes gauge +go_memstats_heap_alloc_bytes 4.4487312e+07 +# HELP go_memstats_heap_idle_bytes Number of heap bytes waiting to be used. Equals to /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes. +# TYPE go_memstats_heap_idle_bytes gauge +go_memstats_heap_idle_bytes 2.8557312e+07 +# HELP go_memstats_heap_inuse_bytes Number of heap bytes that are in use. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes +# TYPE go_memstats_heap_inuse_bytes gauge +go_memstats_heap_inuse_bytes 6.1718528e+07 +# HELP go_memstats_heap_objects Number of currently allocated objects. Equals to /gc/heap/objects:objects. +# TYPE go_memstats_heap_objects gauge +go_memstats_heap_objects 262291 +# HELP go_memstats_heap_released_bytes Number of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes. +# TYPE go_memstats_heap_released_bytes gauge +go_memstats_heap_released_bytes 1.8604032e+07 +# HELP go_memstats_heap_sys_bytes Number of heap bytes obtained from system. Equals to /memory/classes/heap/objects:bytes + /memory/classes/heap/unused:bytes + /memory/classes/heap/released:bytes + /memory/classes/heap/free:bytes. +# TYPE go_memstats_heap_sys_bytes gauge +go_memstats_heap_sys_bytes 9.027584e+07 +# HELP go_memstats_last_gc_time_seconds Number of seconds since 1970 of last garbage collection. +# TYPE go_memstats_last_gc_time_seconds gauge +go_memstats_last_gc_time_seconds 1.761991472238432e+09 +# HELP go_memstats_mallocs_total Total number of heap objects allocated, both live and gc-ed. Semantically a counter version for go_memstats_heap_objects gauge. Equals to /gc/heap/allocs:objects + /gc/heap/tiny/allocs:objects. +# TYPE go_memstats_mallocs_total counter +go_memstats_mallocs_total 2.894336e+06 +# HELP go_memstats_mcache_inuse_bytes Number of bytes in use by mcache structures. Equals to /memory/classes/metadata/mcache/inuse:bytes. +# TYPE go_memstats_mcache_inuse_bytes gauge +go_memstats_mcache_inuse_bytes 14496 +# HELP go_memstats_mcache_sys_bytes Number of bytes used for mcache structures obtained from system. Equals to /memory/classes/metadata/mcache/inuse:bytes + /memory/classes/metadata/mcache/free:bytes. +# TYPE go_memstats_mcache_sys_bytes gauge +go_memstats_mcache_sys_bytes 15704 +# HELP go_memstats_mspan_inuse_bytes Number of bytes in use by mspan structures. Equals to /memory/classes/metadata/mspan/inuse:bytes. +# TYPE go_memstats_mspan_inuse_bytes gauge +go_memstats_mspan_inuse_bytes 949280 +# HELP go_memstats_mspan_sys_bytes Number of bytes used for mspan structures obtained from system. Equals to /memory/classes/metadata/mspan/inuse:bytes + /memory/classes/metadata/mspan/free:bytes. +# TYPE go_memstats_mspan_sys_bytes gauge +go_memstats_mspan_sys_bytes 1.12608e+06 +# HELP go_memstats_next_gc_bytes Number of heap bytes when next garbage collection will take place. Equals to /gc/heap/goal:bytes. +# TYPE go_memstats_next_gc_bytes gauge +go_memstats_next_gc_bytes 8.4839346e+07 +# HELP go_memstats_other_sys_bytes Number of bytes used for other system allocations. Equals to /memory/classes/other:bytes. +# TYPE go_memstats_other_sys_bytes gauge +go_memstats_other_sys_bytes 2.390283e+06 +# HELP go_memstats_stack_inuse_bytes Number of bytes obtained from system for stack allocator in non-CGO environments. Equals to /memory/classes/heap/stacks:bytes. +# TYPE go_memstats_stack_inuse_bytes gauge +go_memstats_stack_inuse_bytes 1.998848e+06 +# HELP go_memstats_stack_sys_bytes Number of bytes obtained from system for stack allocator. Equals to /memory/classes/heap/stacks:bytes + /memory/classes/os-stacks:bytes. +# TYPE go_memstats_stack_sys_bytes gauge +go_memstats_stack_sys_bytes 1.998848e+06 +# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte. +# TYPE go_memstats_sys_bytes gauge +go_memstats_sys_bytes 1.02064408e+08 +# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads. +# TYPE go_sched_gomaxprocs_threads gauge +go_sched_gomaxprocs_threads 12 +# HELP go_sched_goroutines_goroutines Count of live goroutines. Sourced from /sched/goroutines:goroutines. +# TYPE go_sched_goroutines_goroutines gauge +go_sched_goroutines_goroutines 189 +# HELP go_sched_latencies_seconds Distribution of the time goroutines have spent in the scheduler in a runnable state before actually running. Bucket counts increase monotonically. Sourced from /sched/latencies:seconds. +# TYPE go_sched_latencies_seconds histogram +go_sched_latencies_seconds_bucket{le="6.399999999999999e-08"} 12961 +go_sched_latencies_seconds_bucket{le="6.399999999999999e-07"} 13844 +go_sched_latencies_seconds_bucket{le="7.167999999999999e-06"} 14435 +go_sched_latencies_seconds_bucket{le="8.191999999999999e-05"} 17395 +go_sched_latencies_seconds_bucket{le="0.0009175039999999999"} 17917 +go_sched_latencies_seconds_bucket{le="0.010485759999999998"} 17993 +go_sched_latencies_seconds_bucket{le="0.11744051199999998"} 17993 +go_sched_latencies_seconds_bucket{le="123"} 17993 +go_sched_latencies_seconds_sum 0.134144576 +go_sched_latencies_seconds_count 17993 +# HELP go_sched_pauses_stopping_gc_seconds Distribution of individual GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total GC-related stop-the-world time (/sched/pauses/total/gc:seconds). During this time, some threads may be executing. Bucket counts increase monotonically. Sourced from /sched/pauses/stopping/gc:seconds. +# TYPE go_sched_pauses_stopping_gc_seconds histogram +go_sched_pauses_stopping_gc_seconds_bucket{le="6.399999999999999e-08"} 0 +go_sched_pauses_stopping_gc_seconds_bucket{le="6.399999999999999e-07"} 0 +go_sched_pauses_stopping_gc_seconds_bucket{le="7.167999999999999e-06"} 26 +go_sched_pauses_stopping_gc_seconds_bucket{le="8.191999999999999e-05"} 45 +go_sched_pauses_stopping_gc_seconds_bucket{le="0.0009175039999999999"} 48 +go_sched_pauses_stopping_gc_seconds_bucket{le="0.010485759999999998"} 48 +go_sched_pauses_stopping_gc_seconds_bucket{le="0.11744051199999998"} 48 +go_sched_pauses_stopping_gc_seconds_bucket{le="123"} 48 +go_sched_pauses_stopping_gc_seconds_sum 0.000398592 +go_sched_pauses_stopping_gc_seconds_count 48 +# HELP go_sched_pauses_stopping_other_seconds Distribution of individual non-GC-related stop-the-world stopping latencies. This is the time it takes from deciding to stop the world until all Ps are stopped. This is a subset of the total non-GC-related stop-the-world time (/sched/pauses/total/other:seconds). During this time, some threads may be executing. Bucket counts increase monotonically. Sourced from /sched/pauses/stopping/other:seconds. +# TYPE go_sched_pauses_stopping_other_seconds histogram +go_sched_pauses_stopping_other_seconds_bucket{le="6.399999999999999e-08"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="6.399999999999999e-07"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="7.167999999999999e-06"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="8.191999999999999e-05"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="0.0009175039999999999"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="0.010485759999999998"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="0.11744051199999998"} 0 +go_sched_pauses_stopping_other_seconds_bucket{le="123"} 0 +go_sched_pauses_stopping_other_seconds_sum 0 +go_sched_pauses_stopping_other_seconds_count 0 +# HELP go_sched_pauses_total_gc_seconds Distribution of individual GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (this is measured directly in /sched/pauses/stopping/gc:seconds), during which some threads may still be running. Bucket counts increase monotonically. Sourced from /sched/pauses/total/gc:seconds. +# TYPE go_sched_pauses_total_gc_seconds histogram +go_sched_pauses_total_gc_seconds_bucket{le="6.399999999999999e-08"} 0 +go_sched_pauses_total_gc_seconds_bucket{le="6.399999999999999e-07"} 0 +go_sched_pauses_total_gc_seconds_bucket{le="7.167999999999999e-06"} 2 +go_sched_pauses_total_gc_seconds_bucket{le="8.191999999999999e-05"} 32 +go_sched_pauses_total_gc_seconds_bucket{le="0.0009175039999999999"} 36 +go_sched_pauses_total_gc_seconds_bucket{le="0.010485759999999998"} 48 +go_sched_pauses_total_gc_seconds_bucket{le="0.11744051199999998"} 48 +go_sched_pauses_total_gc_seconds_bucket{le="123"} 48 +go_sched_pauses_total_gc_seconds_sum 0.011554047999999999 +go_sched_pauses_total_gc_seconds_count 48 +# HELP go_sched_pauses_total_other_seconds Distribution of individual non-GC-related stop-the-world pause latencies. This is the time from deciding to stop the world until the world is started again. Some of this time is spent getting all threads to stop (measured directly in /sched/pauses/stopping/other:seconds). Bucket counts increase monotonically. Sourced from /sched/pauses/total/other:seconds. +# TYPE go_sched_pauses_total_other_seconds histogram +go_sched_pauses_total_other_seconds_bucket{le="6.399999999999999e-08"} 0 +go_sched_pauses_total_other_seconds_bucket{le="6.399999999999999e-07"} 0 +go_sched_pauses_total_other_seconds_bucket{le="7.167999999999999e-06"} 0 +go_sched_pauses_total_other_seconds_bucket{le="8.191999999999999e-05"} 0 +go_sched_pauses_total_other_seconds_bucket{le="0.0009175039999999999"} 0 +go_sched_pauses_total_other_seconds_bucket{le="0.010485759999999998"} 0 +go_sched_pauses_total_other_seconds_bucket{le="0.11744051199999998"} 0 +go_sched_pauses_total_other_seconds_bucket{le="123"} 0 +go_sched_pauses_total_other_seconds_sum 0 +go_sched_pauses_total_other_seconds_count 0 +# HELP go_sql_stats_connections_blocked_seconds The total time blocked waiting for a new connection. +# TYPE go_sql_stats_connections_blocked_seconds counter +go_sql_stats_connections_blocked_seconds{db_name="grafana"} 0 +go_sql_stats_connections_blocked_seconds{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_closed_max_idle The total number of connections closed due to SetMaxIdleConns. +# TYPE go_sql_stats_connections_closed_max_idle counter +go_sql_stats_connections_closed_max_idle{db_name="grafana"} 14 +go_sql_stats_connections_closed_max_idle{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_closed_max_idle_time The total number of connections closed due to SetConnMaxIdleTime. +# TYPE go_sql_stats_connections_closed_max_idle_time counter +go_sql_stats_connections_closed_max_idle_time{db_name="grafana"} 0 +go_sql_stats_connections_closed_max_idle_time{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_closed_max_lifetime The total number of connections closed due to SetConnMaxLifetime. +# TYPE go_sql_stats_connections_closed_max_lifetime counter +go_sql_stats_connections_closed_max_lifetime{db_name="grafana"} 0 +go_sql_stats_connections_closed_max_lifetime{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_idle The number of idle connections. +# TYPE go_sql_stats_connections_idle gauge +go_sql_stats_connections_idle{db_name="grafana"} 2 +go_sql_stats_connections_idle{db_name="unified_storage"} 2 +# HELP go_sql_stats_connections_in_use The number of connections currently in use. +# TYPE go_sql_stats_connections_in_use gauge +go_sql_stats_connections_in_use{db_name="grafana"} 0 +go_sql_stats_connections_in_use{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_max_open Maximum number of open connections to the database. +# TYPE go_sql_stats_connections_max_open gauge +go_sql_stats_connections_max_open{db_name="grafana"} 0 +go_sql_stats_connections_max_open{db_name="unified_storage"} 0 +# HELP go_sql_stats_connections_open The number of established connections both in use and idle. +# TYPE go_sql_stats_connections_open gauge +go_sql_stats_connections_open{db_name="grafana"} 2 +go_sql_stats_connections_open{db_name="unified_storage"} 2 +# HELP go_sql_stats_connections_waited_for The total number of connections waited for. +# TYPE go_sql_stats_connections_waited_for counter +go_sql_stats_connections_waited_for{db_name="grafana"} 0 +go_sql_stats_connections_waited_for{db_name="unified_storage"} 0 +# HELP go_sync_mutex_wait_total_seconds_total Approximate cumulative time goroutines have spent blocked on a sync.Mutex, sync.RWMutex, or runtime-internal lock. This metric is useful for identifying global changes in lock contention. Collect a mutex or block profile using the runtime/pprof package for more detailed contention data. Sourced from /sync/mutex/wait/total:seconds. +# TYPE go_sync_mutex_wait_total_seconds_total counter +go_sync_mutex_wait_total_seconds_total 0.025283528 +# HELP go_threads Number of OS threads created. +# TYPE go_threads gauge +go_threads 19 +# HELP grafana_access_evaluation_count number of evaluation calls +# TYPE grafana_access_evaluation_count counter +grafana_access_evaluation_count 0 +# HELP grafana_access_evaluation_duration Histogram for the runtime of evaluation function. +# TYPE grafana_access_evaluation_duration histogram +grafana_access_evaluation_duration_bucket{le="1e-05"} 0 +grafana_access_evaluation_duration_bucket{le="4e-05"} 0 +grafana_access_evaluation_duration_bucket{le="0.00016"} 0 +grafana_access_evaluation_duration_bucket{le="0.00064"} 0 +grafana_access_evaluation_duration_bucket{le="0.00256"} 0 +grafana_access_evaluation_duration_bucket{le="0.01024"} 0 +grafana_access_evaluation_duration_bucket{le="0.04096"} 0 +grafana_access_evaluation_duration_bucket{le="0.16384"} 0 +grafana_access_evaluation_duration_bucket{le="0.65536"} 0 +grafana_access_evaluation_duration_bucket{le="2.62144"} 0 +grafana_access_evaluation_duration_bucket{le="123"} 0 +grafana_access_evaluation_duration_sum 0 +grafana_access_evaluation_duration_count 0 +# HELP grafana_access_permissions_cache_usage access control permissions cache hit/miss +# TYPE grafana_access_permissions_cache_usage counter +grafana_access_permissions_cache_usage{status="hit"} 0 +grafana_access_permissions_cache_usage{status="miss"} 0 +# HELP grafana_access_permissions_duration Histogram for the runtime of permissions check function. +# TYPE grafana_access_permissions_duration histogram +grafana_access_permissions_duration_bucket{le="1e-05"} 0 +grafana_access_permissions_duration_bucket{le="4e-05"} 0 +grafana_access_permissions_duration_bucket{le="0.00016"} 0 +grafana_access_permissions_duration_bucket{le="0.00064"} 0 +grafana_access_permissions_duration_bucket{le="0.00256"} 0 +grafana_access_permissions_duration_bucket{le="0.01024"} 0 +grafana_access_permissions_duration_bucket{le="0.04096"} 0 +grafana_access_permissions_duration_bucket{le="0.16384"} 0 +grafana_access_permissions_duration_bucket{le="0.65536"} 0 +grafana_access_permissions_duration_bucket{le="2.62144"} 0 +grafana_access_permissions_duration_bucket{le="123"} 0 +grafana_access_permissions_duration_sum 0 +grafana_access_permissions_duration_count 0 +# HELP grafana_access_search_permissions_duration Histogram for the runtime of permissions search function +# TYPE grafana_access_search_permissions_duration histogram +grafana_access_search_permissions_duration_bucket{le="0.001"} 0 +grafana_access_search_permissions_duration_bucket{le="0.01"} 0 +grafana_access_search_permissions_duration_bucket{le="0.1"} 0 +grafana_access_search_permissions_duration_bucket{le="1"} 0 +grafana_access_search_permissions_duration_bucket{le="10"} 0 +grafana_access_search_permissions_duration_bucket{le="100"} 0 +grafana_access_search_permissions_duration_bucket{le="123"} 0 +grafana_access_search_permissions_duration_sum 0 +grafana_access_search_permissions_duration_count 0 +# HELP grafana_access_search_user_permissions_cache_usage access control search user permissions cache hit/miss +# TYPE grafana_access_search_user_permissions_cache_usage counter +grafana_access_search_user_permissions_cache_usage{status="hit"} 0 +grafana_access_search_user_permissions_cache_usage{status="miss"} 0 +# HELP grafana_aggregator_discovery_aggregation_count_total [ALPHA] Counter of number of times discovery was aggregated +# TYPE grafana_aggregator_discovery_aggregation_count_total counter +grafana_aggregator_discovery_aggregation_count_total 0 +# HELP grafana_alerting_active_alerts amount of active alerts +# TYPE grafana_alerting_active_alerts gauge +grafana_alerting_active_alerts 0 +# HELP grafana_alerting_active_configurations The number of active Alertmanager configurations. +# TYPE grafana_alerting_active_configurations gauge +grafana_alerting_active_configurations 1 +# HELP grafana_alerting_alertmanager_alerts How many alerts by state are in Grafana's Alertmanager. +# TYPE grafana_alerting_alertmanager_alerts gauge +grafana_alerting_alertmanager_alerts{org="1",state="active"} 0 +grafana_alerting_alertmanager_alerts{org="1",state="suppressed"} 0 +grafana_alerting_alertmanager_alerts{org="1",state="unprocessed"} 0 +# HELP grafana_alerting_alertmanager_config_hash The hash of the Alertmanager configuration. +# TYPE grafana_alerting_alertmanager_config_hash gauge +grafana_alerting_alertmanager_config_hash{org="1"} 1.93130392438226e+14 +# HELP grafana_alerting_alertmanager_config_match The total number of match +# TYPE grafana_alerting_alertmanager_config_match gauge +grafana_alerting_alertmanager_config_match 0 +# HELP grafana_alerting_alertmanager_config_match_re The total number of matchRE +# TYPE grafana_alerting_alertmanager_config_match_re gauge +grafana_alerting_alertmanager_config_match_re 0 +# HELP grafana_alerting_alertmanager_config_matchers The total number of matchers +# TYPE grafana_alerting_alertmanager_config_matchers gauge +grafana_alerting_alertmanager_config_matchers 0 +# HELP grafana_alerting_alertmanager_config_object_matchers The total number of object_matchers +# TYPE grafana_alerting_alertmanager_config_object_matchers gauge +grafana_alerting_alertmanager_config_object_matchers 2 +# HELP grafana_alerting_alertmanager_config_size_bytes The size of the grafana alertmanager configuration in bytes +# TYPE grafana_alerting_alertmanager_config_size_bytes gauge +grafana_alerting_alertmanager_config_size_bytes{org="1"} 627 +# HELP grafana_alerting_alertmanager_inhibition_rules Number of configured inhibition rules. +# TYPE grafana_alerting_alertmanager_inhibition_rules gauge +grafana_alerting_alertmanager_inhibition_rules{org="1"} 0 +# HELP grafana_alerting_alertmanager_integrations Number of configured receivers. +# TYPE grafana_alerting_alertmanager_integrations gauge +grafana_alerting_alertmanager_integrations{org="1",type="email"} 1 +# HELP grafana_alerting_alertmanager_receivers Number of configured receivers by state. It is considered active if used within a route. +# TYPE grafana_alerting_alertmanager_receivers gauge +grafana_alerting_alertmanager_receivers{org="1",state="active"} 1 +grafana_alerting_alertmanager_receivers{org="1",state="inactive"} 0 +# HELP grafana_alerting_alerts How many alerts by state are in the scheduler. +# TYPE grafana_alerting_alerts gauge +grafana_alerting_alerts{state="alerting"} 0 +grafana_alerting_alerts{state="error"} 0 +grafana_alerting_alerts{state="nodata"} 0 +grafana_alerting_alerts{state="normal"} 0 +grafana_alerting_alerts{state="pending"} 0 +# HELP grafana_alerting_alerts_invalid_total The total number of received alerts that were invalid. +# TYPE grafana_alerting_alerts_invalid_total counter +grafana_alerting_alerts_invalid_total{org="1"} 0 +# HELP grafana_alerting_alerts_received_total The total number of received alerts. +# TYPE grafana_alerting_alerts_received_total counter +grafana_alerting_alerts_received_total{org="1",status="firing"} 0 +grafana_alerting_alerts_received_total{org="1",status="resolved"} 0 +# HELP grafana_alerting_discovered_configurations The number of organizations we've discovered that require an Alertmanager configuration. +# TYPE grafana_alerting_discovered_configurations gauge +grafana_alerting_discovered_configurations 1 +# HELP grafana_alerting_dispatcher_aggregation_groups Number of active aggregation groups +# TYPE grafana_alerting_dispatcher_aggregation_groups gauge +grafana_alerting_dispatcher_aggregation_groups 0 +# HELP grafana_alerting_dispatcher_alert_processing_duration_seconds Summary of latencies for the processing of alerts. +# TYPE grafana_alerting_dispatcher_alert_processing_duration_seconds summary +grafana_alerting_dispatcher_alert_processing_duration_seconds_sum 0 +grafana_alerting_dispatcher_alert_processing_duration_seconds_count 0 +# HELP grafana_alerting_execution_time_milliseconds summary of alert execution duration +# TYPE grafana_alerting_execution_time_milliseconds summary +grafana_alerting_execution_time_milliseconds{quantile="0.5"} 123 +grafana_alerting_execution_time_milliseconds{quantile="0.9"} 123 +grafana_alerting_execution_time_milliseconds{quantile="0.99"} 123 +grafana_alerting_execution_time_milliseconds_sum 0 +grafana_alerting_execution_time_milliseconds_count 0 +# HELP grafana_alerting_nflog_gc_duration_seconds Duration of the last notification log garbage collection cycle. +# TYPE grafana_alerting_nflog_gc_duration_seconds summary +grafana_alerting_nflog_gc_duration_seconds_sum 2.917e-06 +grafana_alerting_nflog_gc_duration_seconds_count 1 +# HELP grafana_alerting_nflog_gossip_messages_propagated_total Number of received gossip messages that have been further gossiped. +# TYPE grafana_alerting_nflog_gossip_messages_propagated_total counter +grafana_alerting_nflog_gossip_messages_propagated_total 0 +# HELP grafana_alerting_nflog_queries_total Number of notification log queries were received. +# TYPE grafana_alerting_nflog_queries_total counter +grafana_alerting_nflog_queries_total 0 +# HELP grafana_alerting_nflog_query_duration_seconds Duration of notification log query evaluation. +# TYPE grafana_alerting_nflog_query_duration_seconds histogram +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.005"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.01"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.025"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.05"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.1"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.25"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="0.5"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="1"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="2.5"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="5"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="10"} 0 +grafana_alerting_nflog_query_duration_seconds_bucket{le="123"} 0 +grafana_alerting_nflog_query_duration_seconds_sum 0 +grafana_alerting_nflog_query_duration_seconds_count 0 +# HELP grafana_alerting_nflog_query_errors_total Number notification log received queries that failed. +# TYPE grafana_alerting_nflog_query_errors_total counter +grafana_alerting_nflog_query_errors_total 0 +# HELP grafana_alerting_nflog_snapshot_duration_seconds Duration of the last notification log snapshot. +# TYPE grafana_alerting_nflog_snapshot_duration_seconds summary +grafana_alerting_nflog_snapshot_duration_seconds_sum 0 +grafana_alerting_nflog_snapshot_duration_seconds_count 0 +# HELP grafana_alerting_nflog_snapshot_size_bytes Size of the last notification log snapshot in bytes. +# TYPE grafana_alerting_nflog_snapshot_size_bytes gauge +grafana_alerting_nflog_snapshot_size_bytes 0 +# HELP grafana_alerting_notification_latency_seconds The latency of notifications in seconds. +# TYPE grafana_alerting_notification_latency_seconds histogram +grafana_alerting_notification_latency_seconds_bucket{le="123"} 0 +grafana_alerting_notification_latency_seconds_sum 0 +grafana_alerting_notification_latency_seconds_count 0 +# HELP grafana_alerting_remote_alertmanager_configuration_sync_failures_total Total number of failed attempts to sync configurations between Alertmanagers. +# TYPE grafana_alerting_remote_alertmanager_configuration_sync_failures_total counter +grafana_alerting_remote_alertmanager_configuration_sync_failures_total 0 +# HELP grafana_alerting_remote_alertmanager_configuration_syncs_total Total number of configuration syncs to the remote Alertmanager. +# TYPE grafana_alerting_remote_alertmanager_configuration_syncs_total counter +grafana_alerting_remote_alertmanager_configuration_syncs_total 0 +# HELP grafana_alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds Timestamp of the last successful configuration sync to the remote Alertmanager in seconds. +# TYPE grafana_alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds gauge +grafana_alerting_remote_alertmanager_last_configuration_sync_timestamp_seconds 0 +# HELP grafana_alerting_remote_alertmanager_last_readiness_check_timestamp_seconds Timestamp of the last successful readiness check to the remote Alertmanager in seconds. +# TYPE grafana_alerting_remote_alertmanager_last_readiness_check_timestamp_seconds gauge +grafana_alerting_remote_alertmanager_last_readiness_check_timestamp_seconds 0 +# HELP grafana_alerting_remote_alertmanager_last_state_sync_timestamp_seconds Timestamp of the last successful state sync to the remote Alertmanager in seconds. +# TYPE grafana_alerting_remote_alertmanager_last_state_sync_timestamp_seconds gauge +grafana_alerting_remote_alertmanager_last_state_sync_timestamp_seconds 0 +# HELP grafana_alerting_remote_alertmanager_state_sync_failures_total Total number of failed attempts to sync state between Alertmanagers. +# TYPE grafana_alerting_remote_alertmanager_state_sync_failures_total counter +grafana_alerting_remote_alertmanager_state_sync_failures_total 0 +# HELP grafana_alerting_remote_alertmanager_state_syncs_total Total number of state syncs to the remote Alertmanager. +# TYPE grafana_alerting_remote_alertmanager_state_syncs_total counter +grafana_alerting_remote_alertmanager_state_syncs_total 0 +# HELP grafana_alerting_schedule_alert_rules The number of alert rules that could be considered for evaluation at the next tick. +# TYPE grafana_alerting_schedule_alert_rules gauge +grafana_alerting_schedule_alert_rules 0 +# HELP grafana_alerting_schedule_alert_rules_hash A hash of the alert rules that could be considered for evaluation at the next tick. +# TYPE grafana_alerting_schedule_alert_rules_hash gauge +grafana_alerting_schedule_alert_rules_hash 1.4695981039346655e+19 +# HELP grafana_alerting_schedule_periodic_duration_seconds The time taken to run the scheduler. +# TYPE grafana_alerting_schedule_periodic_duration_seconds histogram +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="0.1"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="0.25"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="0.5"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="1"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="2"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="5"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="10"} 275 +grafana_alerting_schedule_periodic_duration_seconds_bucket{le="123"} 275 +grafana_alerting_schedule_periodic_duration_seconds_sum 0.412001412 +grafana_alerting_schedule_periodic_duration_seconds_count 275 +# HELP grafana_alerting_schedule_query_alert_rules_duration_seconds The time taken to fetch alert rules from the database. +# TYPE grafana_alerting_schedule_query_alert_rules_duration_seconds histogram +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="0.1"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="0.25"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="0.5"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="1"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="2"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="5"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="10"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_bucket{le="123"} 275 +grafana_alerting_schedule_query_alert_rules_duration_seconds_sum 0.40373874900000006 +grafana_alerting_schedule_query_alert_rules_duration_seconds_count 275 +# HELP grafana_alerting_scheduler_behind_seconds The total number of seconds the scheduler is behind. +# TYPE grafana_alerting_scheduler_behind_seconds gauge +grafana_alerting_scheduler_behind_seconds 0.000963429 +# HELP grafana_alerting_silences How many silences by state. +# TYPE grafana_alerting_silences gauge +grafana_alerting_silences{org="1",state="active"} 0 +grafana_alerting_silences{org="1",state="expired"} 0 +grafana_alerting_silences{org="1",state="pending"} 0 +# HELP grafana_alerting_silences_gc_duration_seconds Duration of the last silence garbage collection cycle. +# TYPE grafana_alerting_silences_gc_duration_seconds summary +grafana_alerting_silences_gc_duration_seconds_sum 1.459e-06 +grafana_alerting_silences_gc_duration_seconds_count 1 +# HELP grafana_alerting_silences_gossip_messages_propagated_total Number of received gossip messages that have been further gossiped. +# TYPE grafana_alerting_silences_gossip_messages_propagated_total counter +grafana_alerting_silences_gossip_messages_propagated_total 0 +# HELP grafana_alerting_silences_queries_total How many silence queries were received. +# TYPE grafana_alerting_silences_queries_total counter +grafana_alerting_silences_queries_total 384 +# HELP grafana_alerting_silences_query_duration_seconds Duration of silence query evaluation. +# TYPE grafana_alerting_silences_query_duration_seconds histogram +grafana_alerting_silences_query_duration_seconds_bucket{le="0.005"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.01"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.025"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.05"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.1"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.25"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="0.5"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="1"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="2.5"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="5"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="10"} 387 +grafana_alerting_silences_query_duration_seconds_bucket{le="123"} 387 +grafana_alerting_silences_query_duration_seconds_sum 0.0015252430000000003 +grafana_alerting_silences_query_duration_seconds_count 387 +# HELP grafana_alerting_silences_query_errors_total How many silence received queries did not succeed. +# TYPE grafana_alerting_silences_query_errors_total counter +grafana_alerting_silences_query_errors_total 0 +# HELP grafana_alerting_silences_snapshot_duration_seconds Duration of the last silence snapshot. +# TYPE grafana_alerting_silences_snapshot_duration_seconds summary +grafana_alerting_silences_snapshot_duration_seconds_sum 0 +grafana_alerting_silences_snapshot_duration_seconds_count 0 +# HELP grafana_alerting_silences_snapshot_size_bytes Size of the last silence snapshot in bytes. +# TYPE grafana_alerting_silences_snapshot_size_bytes gauge +grafana_alerting_silences_snapshot_size_bytes 0 +# HELP grafana_alerting_state_calculation_duration_seconds The duration of calculation of a single state. +# TYPE grafana_alerting_state_calculation_duration_seconds histogram +grafana_alerting_state_calculation_duration_seconds_bucket{le="0.01"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="0.1"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="1"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="2"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="5"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="10"} 0 +grafana_alerting_state_calculation_duration_seconds_bucket{le="123"} 0 +grafana_alerting_state_calculation_duration_seconds_sum 0 +grafana_alerting_state_calculation_duration_seconds_count 0 +# HELP grafana_alerting_state_full_sync_duration_seconds The duration of fully synchronizing the state with the database. +# TYPE grafana_alerting_state_full_sync_duration_seconds histogram +grafana_alerting_state_full_sync_duration_seconds_bucket{le="0.01"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="0.1"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="1"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="2"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="5"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="10"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="60"} 0 +grafana_alerting_state_full_sync_duration_seconds_bucket{le="123"} 0 +grafana_alerting_state_full_sync_duration_seconds_sum 0 +grafana_alerting_state_full_sync_duration_seconds_count 0 +# HELP grafana_alerting_state_history_info Information about the state history store. +# TYPE grafana_alerting_state_history_info gauge +grafana_alerting_state_history_info{backend="annotations"} 1 +# HELP grafana_alerting_state_history_writes_bytes_total The total number of bytes sent within a batch to the state history store. Only valid when using the Loki store. +# TYPE grafana_alerting_state_history_writes_bytes_total counter +grafana_alerting_state_history_writes_bytes_total 0 +# HELP grafana_alerting_ticker_interval_seconds Interval at which the ticker is meant to tick. +# TYPE grafana_alerting_ticker_interval_seconds gauge +grafana_alerting_ticker_interval_seconds 10 +# HELP grafana_alerting_ticker_last_consumed_tick_timestamp_seconds Timestamp of the last consumed tick in seconds. +# TYPE grafana_alerting_ticker_last_consumed_tick_timestamp_seconds gauge +grafana_alerting_ticker_last_consumed_tick_timestamp_seconds 1.76199152e+09 +# HELP grafana_alerting_ticker_next_tick_timestamp_seconds Timestamp of the next tick in seconds before it is consumed. +# TYPE grafana_alerting_ticker_next_tick_timestamp_seconds gauge +grafana_alerting_ticker_next_tick_timestamp_seconds 1.76199153e+09 +# HELP grafana_api_admin_user_created_total api admin user created counter +# TYPE grafana_api_admin_user_created_total counter +grafana_api_admin_user_created_total 0 +# HELP grafana_api_dashboard_get_milliseconds summary for dashboard get duration +# TYPE grafana_api_dashboard_get_milliseconds summary +grafana_api_dashboard_get_milliseconds{quantile="0.5"} 123 +grafana_api_dashboard_get_milliseconds{quantile="0.9"} 123 +grafana_api_dashboard_get_milliseconds{quantile="0.99"} 123 +grafana_api_dashboard_get_milliseconds_sum 0 +grafana_api_dashboard_get_milliseconds_count 0 +# HELP grafana_api_dashboard_save_milliseconds summary for dashboard save duration +# TYPE grafana_api_dashboard_save_milliseconds summary +grafana_api_dashboard_save_milliseconds{quantile="0.5"} 123 +grafana_api_dashboard_save_milliseconds{quantile="0.9"} 123 +grafana_api_dashboard_save_milliseconds{quantile="0.99"} 123 +grafana_api_dashboard_save_milliseconds_sum 0 +grafana_api_dashboard_save_milliseconds_count 0 +# HELP grafana_api_dashboard_search_milliseconds summary for dashboard search duration +# TYPE grafana_api_dashboard_search_milliseconds summary +grafana_api_dashboard_search_milliseconds{quantile="0.5"} 123 +grafana_api_dashboard_search_milliseconds{quantile="0.9"} 123 +grafana_api_dashboard_search_milliseconds{quantile="0.99"} 123 +grafana_api_dashboard_search_milliseconds_sum 0 +grafana_api_dashboard_search_milliseconds_count 0 +# HELP grafana_api_dashboard_snapshot_create_total dashboard snapshots created +# TYPE grafana_api_dashboard_snapshot_create_total counter +grafana_api_dashboard_snapshot_create_total 0 +# HELP grafana_api_dashboard_snapshot_external_total external dashboard snapshots created +# TYPE grafana_api_dashboard_snapshot_external_total counter +grafana_api_dashboard_snapshot_external_total 0 +# HELP grafana_api_dashboard_snapshot_get_total loaded dashboards +# TYPE grafana_api_dashboard_snapshot_get_total counter +grafana_api_dashboard_snapshot_get_total 0 +# HELP grafana_api_dataproxy_request_all_milliseconds summary for dataproxy request duration +# TYPE grafana_api_dataproxy_request_all_milliseconds summary +grafana_api_dataproxy_request_all_milliseconds{quantile="0.5"} 123 +grafana_api_dataproxy_request_all_milliseconds{quantile="0.9"} 123 +grafana_api_dataproxy_request_all_milliseconds{quantile="0.99"} 123 +grafana_api_dataproxy_request_all_milliseconds_sum 0 +grafana_api_dataproxy_request_all_milliseconds_count 0 +# HELP grafana_api_login_oauth_total api login oauth counter +# TYPE grafana_api_login_oauth_total counter +grafana_api_login_oauth_total 0 +# HELP grafana_api_login_post_total api login post counter +# TYPE grafana_api_login_post_total counter +grafana_api_login_post_total 0 +# HELP grafana_api_login_saml_total api login saml counter +# TYPE grafana_api_login_saml_total counter +grafana_api_login_saml_total 0 +# HELP grafana_api_models_dashboard_insert_total dashboards inserted +# TYPE grafana_api_models_dashboard_insert_total counter +grafana_api_models_dashboard_insert_total 0 +# HELP grafana_api_org_create_total api org created counter +# TYPE grafana_api_org_create_total counter +grafana_api_org_create_total 0 +# HELP grafana_api_response_status_total api http response status +# TYPE grafana_api_response_status_total counter +grafana_api_response_status_total{code="200"} 0 +grafana_api_response_status_total{code="404"} 0 +grafana_api_response_status_total{code="500"} 0 +grafana_api_response_status_total{code="unknown"} 0 +# HELP grafana_api_user_signup_completed_total amount of users who completed the signup flow +# TYPE grafana_api_user_signup_completed_total counter +grafana_api_user_signup_completed_total 0 +# HELP grafana_api_user_signup_invite_total amount of users who have been invited +# TYPE grafana_api_user_signup_invite_total counter +grafana_api_user_signup_invite_total 0 +# HELP grafana_api_user_signup_started_total amount of users who started the signup flow +# TYPE grafana_api_user_signup_started_total counter +grafana_api_user_signup_started_total 0 +# HELP grafana_apiserver_audit_event_total [ALPHA] Counter of audit events generated and sent to the audit backend. +# TYPE grafana_apiserver_audit_event_total counter +grafana_apiserver_audit_event_total 0 +# HELP grafana_apiserver_audit_requests_rejected_total [ALPHA] Counter of apiserver requests rejected due to an error in audit logging backend. +# TYPE grafana_apiserver_audit_requests_rejected_total counter +grafana_apiserver_audit_requests_rejected_total 0 +# HELP grafana_apiserver_client_certificate_expiration_seconds [ALPHA] Distribution of the remaining lifetime on the certificate used to authenticate a request. +# TYPE grafana_apiserver_client_certificate_expiration_seconds histogram +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="0"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="1800"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="3600"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="7200"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="21600"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="43200"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="86400"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="172800"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="345600"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="604800"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="2.592e+06"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="7.776e+06"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="1.5552e+07"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="3.1104e+07"} 0 +grafana_apiserver_client_certificate_expiration_seconds_bucket{le="123"} 0 +grafana_apiserver_client_certificate_expiration_seconds_sum 0 +grafana_apiserver_client_certificate_expiration_seconds_count 0 +# HELP grafana_apiserver_current_inflight_requests [STABLE] Maximal number of currently used inflight request limit of this apiserver per request kind in last second. +# TYPE grafana_apiserver_current_inflight_requests gauge +grafana_apiserver_current_inflight_requests{request_kind="mutating"} 0 +grafana_apiserver_current_inflight_requests{request_kind="readOnly"} 0 +# HELP grafana_apiserver_envelope_encryption_dek_cache_fill_percent [ALPHA] Percent of the cache slots currently occupied by cached DEKs. +# TYPE grafana_apiserver_envelope_encryption_dek_cache_fill_percent gauge +grafana_apiserver_envelope_encryption_dek_cache_fill_percent 0 +# HELP grafana_apiserver_flowcontrol_seat_fair_frac [ALPHA] Fair fraction of server's concurrency to allocate to each priority level that can use it +# TYPE grafana_apiserver_flowcontrol_seat_fair_frac gauge +grafana_apiserver_flowcontrol_seat_fair_frac 0 +# HELP grafana_apiserver_kube_aggregator_x509_insecure_sha1_total [ALPHA] Counts the number of requests to servers with insecure SHA1 signatures in their serving certificate OR the number of connection failures due to the insecure SHA1 signatures (either/or, based on the runtime environment) +# TYPE grafana_apiserver_kube_aggregator_x509_insecure_sha1_total counter +grafana_apiserver_kube_aggregator_x509_insecure_sha1_total 0 +# HELP grafana_apiserver_kube_aggregator_x509_missing_san_total [ALPHA] Counts the number of requests to servers missing SAN extension in their serving certificate OR the number of connection failures due to the lack of x509 certificate SAN extension missing (either/or, based on the runtime environment) +# TYPE grafana_apiserver_kube_aggregator_x509_missing_san_total counter +grafana_apiserver_kube_aggregator_x509_missing_san_total 0 +# HELP grafana_apiserver_storage_data_key_generation_duration_seconds [ALPHA] Latencies in seconds of data encryption key(DEK) generation operations. +# TYPE grafana_apiserver_storage_data_key_generation_duration_seconds histogram +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="5e-06"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="1e-05"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="2e-05"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="4e-05"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="8e-05"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00016"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00032"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00064"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00128"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00256"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.00512"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.01024"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.02048"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="0.04096"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_bucket{le="123"} 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_sum 0 +grafana_apiserver_storage_data_key_generation_duration_seconds_count 0 +# HELP grafana_apiserver_storage_data_key_generation_failures_total [ALPHA] Total number of failed data encryption key(DEK) generation operations. +# TYPE grafana_apiserver_storage_data_key_generation_failures_total counter +grafana_apiserver_storage_data_key_generation_failures_total 0 +# HELP grafana_apiserver_storage_envelope_transformation_cache_misses_total [ALPHA] Total number of cache misses while accessing key decryption key(KEK). +# TYPE grafana_apiserver_storage_envelope_transformation_cache_misses_total counter +grafana_apiserver_storage_envelope_transformation_cache_misses_total 0 +# HELP grafana_apiserver_storage_objects [STABLE] Number of stored objects at the time of last check split by kind. In case of a fetching error, the value will be -1. +# TYPE grafana_apiserver_storage_objects gauge +grafana_apiserver_storage_objects{resource="dashboards.dashboard.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="folders.folder.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="playlists.playlist.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="receivers.notifications.alerting.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="templategroups.notifications.alerting.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="timeintervals.notifications.alerting.grafana.app"} 0 +grafana_apiserver_storage_objects{resource="user-storage.userstorage.grafana.app"} 0 +# HELP grafana_apiserver_tls_handshake_errors_total [ALPHA] Number of requests dropped with 'TLS handshake error from' error +# TYPE grafana_apiserver_tls_handshake_errors_total counter +grafana_apiserver_tls_handshake_errors_total 0 +# HELP grafana_apiserver_webhooks_x509_insecure_sha1_total [ALPHA] Counts the number of requests to servers with insecure SHA1 signatures in their serving certificate OR the number of connection failures due to the insecure SHA1 signatures (either/or, based on the runtime environment) +# TYPE grafana_apiserver_webhooks_x509_insecure_sha1_total counter +grafana_apiserver_webhooks_x509_insecure_sha1_total 0 +# HELP grafana_apiserver_webhooks_x509_missing_san_total [ALPHA] Counts the number of requests to servers missing SAN extension in their serving certificate OR the number of connection failures due to the lack of x509 certificate SAN extension missing (either/or, based on the runtime environment) +# TYPE grafana_apiserver_webhooks_x509_missing_san_total counter +grafana_apiserver_webhooks_x509_missing_san_total 0 +# HELP grafana_authn_authn_failed_authentication_total Number of failed authentications +# TYPE grafana_authn_authn_failed_authentication_total counter +grafana_authn_authn_failed_authentication_total 0 +# HELP grafana_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which Grafana was built +# TYPE grafana_build_info gauge +grafana_build_info{branch="HEAD",edition="oss",goversion="go1.24.4",revision="5bda17e7c1cb313eb96266f2fdda73a6b35c3977",version="12.0.2"} 1 +# HELP grafana_build_timestamp A metric exposing when the binary was built in epoch +# TYPE grafana_build_timestamp gauge +grafana_build_timestamp{branch="HEAD",edition="oss",goversion="go1.24.4",revision="5bda17e7c1cb313eb96266f2fdda73a6b35c3977",version="12.0.2"} 1.761988774e+09 +# HELP grafana_cardinality_enforcement_unexpected_categorizations_total [ALPHA] The count of unexpected categorizations during cardinality enforcement. +# TYPE grafana_cardinality_enforcement_unexpected_categorizations_total counter +grafana_cardinality_enforcement_unexpected_categorizations_total 0 +# HELP grafana_database_all_migrations_duration_seconds Duration of the entire SQL migration process in seconds +# TYPE grafana_database_all_migrations_duration_seconds histogram +grafana_database_all_migrations_duration_seconds_bucket{success="true",le="123"} 1 +grafana_database_all_migrations_duration_seconds_sum{success="true"} 1.871633626 +grafana_database_all_migrations_duration_seconds_count{success="true"} 1 +# HELP grafana_database_conn_idle The number of idle connections +# TYPE grafana_database_conn_idle gauge +grafana_database_conn_idle 2 +# HELP grafana_database_conn_in_use The number of connections currently in use +# TYPE grafana_database_conn_in_use gauge +grafana_database_conn_in_use 0 +# HELP grafana_database_conn_max_idle_closed_seconds The total number of connections closed due to SetConnMaxIdleTime +# TYPE grafana_database_conn_max_idle_closed_seconds counter +grafana_database_conn_max_idle_closed_seconds 0 +# HELP grafana_database_conn_max_idle_closed_total The total number of connections closed due to SetMaxIdleConns +# TYPE grafana_database_conn_max_idle_closed_total counter +grafana_database_conn_max_idle_closed_total 14 +# HELP grafana_database_conn_max_lifetime_closed_total The total number of connections closed due to SetConnMaxLifetime +# TYPE grafana_database_conn_max_lifetime_closed_total counter +grafana_database_conn_max_lifetime_closed_total 0 +# HELP grafana_database_conn_max_open Maximum number of open connections to the database +# TYPE grafana_database_conn_max_open gauge +grafana_database_conn_max_open 0 +# HELP grafana_database_conn_open The number of established connections both in use and idle +# TYPE grafana_database_conn_open gauge +grafana_database_conn_open 2 +# HELP grafana_database_conn_wait_count_total The total number of connections waited for +# TYPE grafana_database_conn_wait_count_total counter +grafana_database_conn_wait_count_total 0 +# HELP grafana_database_conn_wait_duration_seconds The total time blocked waiting for a new connection +# TYPE grafana_database_conn_wait_duration_seconds counter +grafana_database_conn_wait_duration_seconds 0 +# HELP grafana_database_migration_duration_seconds Individual SQL migration duration in seconds +# TYPE grafana_database_migration_duration_seconds histogram +grafana_database_migration_duration_seconds_bucket{success="true",le="123"} 654 +grafana_database_migration_duration_seconds_sum{success="true"} 1.8704748240000004 +grafana_database_migration_duration_seconds_count{success="true"} 654 +# HELP grafana_database_migrations_total Total number of SQL migrations +# TYPE grafana_database_migrations_total counter +grafana_database_migrations_total{success="true"} 654 +# HELP grafana_db_datasource_query_by_id_total counter for getting datasource by id +# TYPE grafana_db_datasource_query_by_id_total counter +grafana_db_datasource_query_by_id_total 0 +# HELP grafana_disabled_metrics_total [BETA] The count of disabled metrics. +# TYPE grafana_disabled_metrics_total counter +grafana_disabled_metrics_total 0 +# HELP grafana_emails_sent_failed Number of emails Grafana failed to send +# TYPE grafana_emails_sent_failed counter +grafana_emails_sent_failed 0 +# HELP grafana_emails_sent_total Number of emails sent by Grafana +# TYPE grafana_emails_sent_total counter +grafana_emails_sent_total 0 +# HELP grafana_encryption_cache_reads_total A counter for encryption cache reads +# TYPE grafana_encryption_cache_reads_total counter +grafana_encryption_cache_reads_total{hit="false",method="byId"} 0 +grafana_encryption_cache_reads_total{hit="false",method="byName"} 0 +grafana_encryption_cache_reads_total{hit="true",method="byId"} 0 +grafana_encryption_cache_reads_total{hit="true",method="byName"} 0 +# HELP grafana_encryption_ops_total A counter for encryption operations +# TYPE grafana_encryption_ops_total counter +grafana_encryption_ops_total{operation="decrypt",success="false"} 0 +grafana_encryption_ops_total{operation="decrypt",success="true"} 0 +grafana_encryption_ops_total{operation="encrypt",success="false"} 0 +grafana_encryption_ops_total{operation="encrypt",success="true"} 0 +# HELP grafana_environment_info A metric with a constant '1' value labeled by environment information about the running instance. +# TYPE grafana_environment_info gauge +grafana_environment_info{commit="5bda17e7c1cb313eb96266f2fdda73a6b35c3977",version="12.0.2"} 1 +# HELP grafana_feature_toggles_info info metric that exposes what feature toggles are enabled or not +# TYPE grafana_feature_toggles_info gauge +grafana_feature_toggles_info{name="ABTestFeatureToggleA"} 0 +grafana_feature_toggles_info{name="ABTestFeatureToggleB"} 0 +grafana_feature_toggles_info{name="addFieldFromCalculationStatFunctions"} 1 +grafana_feature_toggles_info{name="aiGeneratedDashboardChanges"} 0 +grafana_feature_toggles_info{name="alertRuleRestore"} 1 +grafana_feature_toggles_info{name="alertingApiServer"} 1 +grafana_feature_toggles_info{name="alertingBacktesting"} 0 +grafana_feature_toggles_info{name="alertingCentralAlertHistory"} 0 +grafana_feature_toggles_info{name="alertingDisableSendAlertsExternal"} 0 +grafana_feature_toggles_info{name="alertingFilterV2"} 0 +grafana_feature_toggles_info{name="alertingInsights"} 1 +grafana_feature_toggles_info{name="alertingJiraIntegration"} 0 +grafana_feature_toggles_info{name="alertingListViewV2"} 0 +grafana_feature_toggles_info{name="alertingMigrationUI"} 0 +grafana_feature_toggles_info{name="alertingNotificationsStepMode"} 1 +grafana_feature_toggles_info{name="alertingPrometheusRulesPrimary"} 0 +grafana_feature_toggles_info{name="alertingQueryAndExpressionsStepMode"} 1 +grafana_feature_toggles_info{name="alertingQueryOptimization"} 0 +grafana_feature_toggles_info{name="alertingRulePermanentlyDelete"} 1 +grafana_feature_toggles_info{name="alertingRuleRecoverDeleted"} 1 +grafana_feature_toggles_info{name="alertingRuleVersionHistoryRestore"} 1 +grafana_feature_toggles_info{name="alertingSaveStateCompressed"} 0 +grafana_feature_toggles_info{name="alertingSaveStatePeriodic"} 0 +grafana_feature_toggles_info{name="alertingSimplifiedRouting"} 1 +grafana_feature_toggles_info{name="alertingUIOptimizeReducer"} 1 +grafana_feature_toggles_info{name="alertmanagerRemoteOnly"} 0 +grafana_feature_toggles_info{name="alertmanagerRemotePrimary"} 0 +grafana_feature_toggles_info{name="alertmanagerRemoteSecondary"} 0 +grafana_feature_toggles_info{name="angularDeprecationUI"} 1 +grafana_feature_toggles_info{name="annotationPermissionUpdate"} 1 +grafana_feature_toggles_info{name="appPlatformGrpcClientAuth"} 0 +grafana_feature_toggles_info{name="assetSriChecks"} 0 +grafana_feature_toggles_info{name="authZGRPCServer"} 0 +grafana_feature_toggles_info{name="awsAsyncQueryCaching"} 1 +grafana_feature_toggles_info{name="awsDatasourcesTempCredentials"} 0 +grafana_feature_toggles_info{name="azureMonitorDisableLogLimit"} 0 +grafana_feature_toggles_info{name="azureMonitorEnableUserAuth"} 1 +grafana_feature_toggles_info{name="azureMonitorLogsBuilderEditor"} 0 +grafana_feature_toggles_info{name="azureMonitorPrometheusExemplars"} 1 +grafana_feature_toggles_info{name="cachingOptimizeSerializationMemoryUsage"} 0 +grafana_feature_toggles_info{name="canvasPanelNesting"} 0 +grafana_feature_toggles_info{name="canvasPanelPanZoom"} 0 +grafana_feature_toggles_info{name="cloudRBACRoles"} 0 +grafana_feature_toggles_info{name="cloudWatchBatchQueries"} 0 +grafana_feature_toggles_info{name="cloudWatchCrossAccountQuerying"} 1 +grafana_feature_toggles_info{name="cloudWatchNewLabelParsing"} 1 +grafana_feature_toggles_info{name="cloudWatchRoundUpEndTime"} 1 +grafana_feature_toggles_info{name="configurableSchedulerTick"} 0 +grafana_feature_toggles_info{name="correlations"} 1 +grafana_feature_toggles_info{name="crashDetection"} 0 +grafana_feature_toggles_info{name="dashboardDisableSchemaValidationV1"} 0 +grafana_feature_toggles_info{name="dashboardDisableSchemaValidationV2"} 0 +grafana_feature_toggles_info{name="dashboardNewLayouts"} 0 +grafana_feature_toggles_info{name="dashboardScene"} 1 +grafana_feature_toggles_info{name="dashboardSceneForViewers"} 1 +grafana_feature_toggles_info{name="dashboardSceneSolo"} 1 +grafana_feature_toggles_info{name="dashboardSchemaValidationLogging"} 0 +grafana_feature_toggles_info{name="dashgpt"} 1 +grafana_feature_toggles_info{name="dataplaneAggregator"} 0 +grafana_feature_toggles_info{name="dataplaneFrontendFallback"} 1 +grafana_feature_toggles_info{name="datasourceAPIServers"} 0 +grafana_feature_toggles_info{name="datasourceConnectionsTab"} 0 +grafana_feature_toggles_info{name="datasourceQueryTypes"} 0 +grafana_feature_toggles_info{name="disableClassicHTTPHistogram"} 0 +grafana_feature_toggles_info{name="disableEnvelopeEncryption"} 0 +grafana_feature_toggles_info{name="disableNumericMetricsSortingInExpressions"} 0 +grafana_feature_toggles_info{name="disableSSEDataplane"} 0 +grafana_feature_toggles_info{name="disableSecretsCompatibility"} 0 +grafana_feature_toggles_info{name="editPanelCSVDragAndDrop"} 0 +grafana_feature_toggles_info{name="elasticsearchCrossClusterSearch"} 0 +grafana_feature_toggles_info{name="elasticsearchImprovedParsing"} 0 +grafana_feature_toggles_info{name="enableDatagridEditing"} 0 +grafana_feature_toggles_info{name="enableExtensionsAdminPage"} 0 +grafana_feature_toggles_info{name="enableNativeHTTPHistogram"} 0 +grafana_feature_toggles_info{name="enableSCIM"} 0 +grafana_feature_toggles_info{name="enableScopesInMetricsExplore"} 0 +grafana_feature_toggles_info{name="exploreLogsAggregatedMetrics"} 0 +grafana_feature_toggles_info{name="exploreLogsLimitedTimeRange"} 0 +grafana_feature_toggles_info{name="exploreLogsShardSplitting"} 0 +grafana_feature_toggles_info{name="exploreMetricsRelatedLogs"} 0 +grafana_feature_toggles_info{name="expressionParser"} 0 +grafana_feature_toggles_info{name="extensionSidebar"} 0 +grafana_feature_toggles_info{name="externalCorePlugins"} 1 +grafana_feature_toggles_info{name="externalServiceAccounts"} 0 +grafana_feature_toggles_info{name="extraThemes"} 0 +grafana_feature_toggles_info{name="extractFieldsNameDeduplication"} 0 +grafana_feature_toggles_info{name="failWrongDSUID"} 1 +grafana_feature_toggles_info{name="faroDatasourceSelector"} 0 +grafana_feature_toggles_info{name="featureHighlights"} 0 +grafana_feature_toggles_info{name="featureToggleAdminPage"} 0 +grafana_feature_toggles_info{name="feedbackButton"} 0 +grafana_feature_toggles_info{name="fetchRulesUsingPost"} 0 +grafana_feature_toggles_info{name="formatString"} 1 +grafana_feature_toggles_info{name="frontendSandboxMonitorOnly"} 0 +grafana_feature_toggles_info{name="grafanaAdvisor"} 0 +grafana_feature_toggles_info{name="grafanaManagedRecordingRules"} 0 +grafana_feature_toggles_info{name="grafanaManagedRecordingRulesDatasources"} 0 +grafana_feature_toggles_info{name="grafanaconThemes"} 1 +grafana_feature_toggles_info{name="groupAttributeSync"} 0 +grafana_feature_toggles_info{name="groupByVariable"} 0 +grafana_feature_toggles_info{name="groupToNestedTableTransformation"} 1 +grafana_feature_toggles_info{name="grpcServer"} 0 +grafana_feature_toggles_info{name="homeSetupGuide"} 0 +grafana_feature_toggles_info{name="improvedExternalSessionHandling"} 0 +grafana_feature_toggles_info{name="improvedExternalSessionHandlingSAML"} 0 +grafana_feature_toggles_info{name="individualCookiePreferences"} 0 +grafana_feature_toggles_info{name="infinityRunQueriesInParallel"} 0 +grafana_feature_toggles_info{name="influxdbBackendMigration"} 1 +grafana_feature_toggles_info{name="influxdbRunQueriesInParallel"} 0 +grafana_feature_toggles_info{name="influxqlStreamingParser"} 0 +grafana_feature_toggles_info{name="investigationsBackend"} 0 +grafana_feature_toggles_info{name="inviteUserExperimental"} 0 +grafana_feature_toggles_info{name="jaegerBackendMigration"} 0 +grafana_feature_toggles_info{name="jitterAlertRulesWithinGroups"} 0 +grafana_feature_toggles_info{name="k8SFolderCounts"} 0 +grafana_feature_toggles_info{name="k8SFolderMove"} 0 +grafana_feature_toggles_info{name="kubernetesAggregator"} 0 +grafana_feature_toggles_info{name="kubernetesClientDashboardsFolders"} 1 +grafana_feature_toggles_info{name="kubernetesDashboards"} 0 +grafana_feature_toggles_info{name="kubernetesFeatureToggles"} 0 +grafana_feature_toggles_info{name="kubernetesPlaylists"} 1 +grafana_feature_toggles_info{name="kubernetesSnapshots"} 0 +grafana_feature_toggles_info{name="libraryPanelRBAC"} 0 +grafana_feature_toggles_info{name="localeFormatPreference"} 0 +grafana_feature_toggles_info{name="localizationForPlugins"} 0 +grafana_feature_toggles_info{name="logQLScope"} 0 +grafana_feature_toggles_info{name="logRequestsInstrumentedAsUnknown"} 0 +grafana_feature_toggles_info{name="logRowsPopoverMenu"} 1 +grafana_feature_toggles_info{name="logsContextDatasourceUi"} 1 +grafana_feature_toggles_info{name="logsExploreTableDefaultVisualization"} 0 +grafana_feature_toggles_info{name="logsExploreTableVisualisation"} 1 +grafana_feature_toggles_info{name="logsInfiniteScrolling"} 1 +grafana_feature_toggles_info{name="logsPanelControls"} 1 +grafana_feature_toggles_info{name="lokiExperimentalStreaming"} 0 +grafana_feature_toggles_info{name="lokiLabelNamesQueryApi"} 1 +grafana_feature_toggles_info{name="lokiLogsDataplane"} 0 +grafana_feature_toggles_info{name="lokiPredefinedOperations"} 0 +grafana_feature_toggles_info{name="lokiQueryHints"} 1 +grafana_feature_toggles_info{name="lokiQuerySplitting"} 1 +grafana_feature_toggles_info{name="lokiQuerySplittingConfig"} 0 +grafana_feature_toggles_info{name="lokiRunQueriesInParallel"} 0 +grafana_feature_toggles_info{name="lokiSendDashboardPanelNames"} 0 +grafana_feature_toggles_info{name="lokiShardSplitting"} 0 +grafana_feature_toggles_info{name="lokiStructuredMetadata"} 1 +grafana_feature_toggles_info{name="managedDualWriter"} 0 +grafana_feature_toggles_info{name="metricsFromProfiles"} 0 +grafana_feature_toggles_info{name="mlExpressions"} 0 +grafana_feature_toggles_info{name="multiTenantTempCredentials"} 0 +grafana_feature_toggles_info{name="mysqlAnsiQuotes"} 0 +grafana_feature_toggles_info{name="nestedFolders"} 1 +grafana_feature_toggles_info{name="newDashboardSharingComponent"} 1 +grafana_feature_toggles_info{name="newDashboardWithFiltersAndGroupBy"} 0 +grafana_feature_toggles_info{name="newFiltersUI"} 1 +grafana_feature_toggles_info{name="newFolderPicker"} 0 +grafana_feature_toggles_info{name="newLogsPanel"} 0 +grafana_feature_toggles_info{name="newPDFRendering"} 1 +grafana_feature_toggles_info{name="newShareReportDrawer"} 0 +grafana_feature_toggles_info{name="oauthRequireSubClaim"} 0 +grafana_feature_toggles_info{name="onPremToCloudMigrations"} 1 +grafana_feature_toggles_info{name="panelFilterVariable"} 0 +grafana_feature_toggles_info{name="panelMonitoring"} 1 +grafana_feature_toggles_info{name="panelTitleSearch"} 0 +grafana_feature_toggles_info{name="passwordlessMagicLinkAuthentication"} 0 +grafana_feature_toggles_info{name="pdfTables"} 0 +grafana_feature_toggles_info{name="permissionsFilterRemoveSubquery"} 0 +grafana_feature_toggles_info{name="pinNavItems"} 1 +grafana_feature_toggles_info{name="playlistsReconciler"} 0 +grafana_feature_toggles_info{name="pluginProxyPreserveTrailingSlash"} 0 +grafana_feature_toggles_info{name="pluginsCDNSyncLoader"} 0 +grafana_feature_toggles_info{name="pluginsDetailsRightPanel"} 1 +grafana_feature_toggles_info{name="pluginsFrontendSandbox"} 0 +grafana_feature_toggles_info{name="pluginsSkipHostEnvVars"} 0 +grafana_feature_toggles_info{name="pluginsSriChecks"} 0 +grafana_feature_toggles_info{name="preinstallAutoUpdate"} 1 +grafana_feature_toggles_info{name="preserveDashboardStateWhenNavigating"} 0 +grafana_feature_toggles_info{name="promQLScope"} 1 +grafana_feature_toggles_info{name="prometheusAzureOverrideAudience"} 1 +grafana_feature_toggles_info{name="prometheusCodeModeMetricNamesSearch"} 0 +grafana_feature_toggles_info{name="prometheusSpecialCharsInLabelValues"} 0 +grafana_feature_toggles_info{name="prometheusUsesCombobox"} 1 +grafana_feature_toggles_info{name="provisioning"} 0 +grafana_feature_toggles_info{name="publicDashboardsEmailSharing"} 0 +grafana_feature_toggles_info{name="publicDashboardsScene"} 1 +grafana_feature_toggles_info{name="queryLibrary"} 0 +grafana_feature_toggles_info{name="queryService"} 0 +grafana_feature_toggles_info{name="queryServiceFromExplore"} 0 +grafana_feature_toggles_info{name="queryServiceFromUI"} 0 +grafana_feature_toggles_info{name="queryServiceRewrite"} 0 +grafana_feature_toggles_info{name="recordedQueriesMulti"} 1 +grafana_feature_toggles_info{name="recoveryThreshold"} 1 +grafana_feature_toggles_info{name="refactorVariablesTimeRange"} 0 +grafana_feature_toggles_info{name="regressionTransformation"} 0 +grafana_feature_toggles_info{name="reloadDashboardsOnParamsChange"} 0 +grafana_feature_toggles_info{name="renderAuthJWT"} 0 +grafana_feature_toggles_info{name="rendererDisableAppPluginsPreload"} 0 +grafana_feature_toggles_info{name="reportingRetries"} 0 +grafana_feature_toggles_info{name="reportingUseRawTimeRange"} 1 +grafana_feature_toggles_info{name="rolePickerDrawer"} 0 +grafana_feature_toggles_info{name="scopeApi"} 0 +grafana_feature_toggles_info{name="scopeFilters"} 0 +grafana_feature_toggles_info{name="scopeSearchAllLevels"} 0 +grafana_feature_toggles_info{name="secretsManagementAppPlatform"} 0 +grafana_feature_toggles_info{name="showDashboardValidationWarnings"} 0 +grafana_feature_toggles_info{name="sqlDatasourceDatabaseSelection"} 0 +grafana_feature_toggles_info{name="sqlExpressions"} 0 +grafana_feature_toggles_info{name="sseGroupByDatasource"} 0 +grafana_feature_toggles_info{name="ssoSettingsApi"} 1 +grafana_feature_toggles_info{name="ssoSettingsLDAP"} 0 +grafana_feature_toggles_info{name="ssoSettingsSAML"} 1 +grafana_feature_toggles_info{name="storage"} 0 +grafana_feature_toggles_info{name="tableNextGen"} 0 +grafana_feature_toggles_info{name="tableSharedCrosshair"} 0 +grafana_feature_toggles_info{name="teamHttpHeadersMimir"} 0 +grafana_feature_toggles_info{name="templateVariablesUsesCombobox"} 0 +grafana_feature_toggles_info{name="timeRangeProvider"} 0 +grafana_feature_toggles_info{name="tlsMemcached"} 1 +grafana_feature_toggles_info{name="transformationsRedesign"} 1 +grafana_feature_toggles_info{name="unifiedHistory"} 0 +grafana_feature_toggles_info{name="unifiedNavbars"} 0 +grafana_feature_toggles_info{name="unifiedRequestLog"} 1 +grafana_feature_toggles_info{name="unifiedStorageBigObjectsSupport"} 0 +grafana_feature_toggles_info{name="unifiedStorageGrpcConnectionPool"} 0 +grafana_feature_toggles_info{name="unifiedStorageHistoryPruner"} 0 +grafana_feature_toggles_info{name="unifiedStorageSearch"} 0 +grafana_feature_toggles_info{name="unifiedStorageSearchPermissionFiltering"} 1 +grafana_feature_toggles_info{name="unifiedStorageSearchSprinkles"} 0 +grafana_feature_toggles_info{name="unifiedStorageSearchUI"} 0 +grafana_feature_toggles_info{name="useScopesNavigationEndpoint"} 0 +grafana_feature_toggles_info{name="useSessionStorageForRedirection"} 1 +grafana_feature_toggles_info{name="wargamesTesting"} 0 +grafana_feature_toggles_info{name="xrayApplicationSignals"} 0 +grafana_feature_toggles_info{name="zanzana"} 0 +# HELP grafana_folder_id_api_count counter for folder id usage in api package +# TYPE grafana_folder_id_api_count counter +grafana_folder_id_api_count{method="GetAlerts"} 0 +grafana_folder_id_api_count{method="GetDashboard"} 0 +grafana_folder_id_api_count{method="GetFolderByID"} 0 +grafana_folder_id_api_count{method="GetFolderDescendantCounts"} 0 +grafana_folder_id_api_count{method="GetFolderPermissionList"} 0 +grafana_folder_id_api_count{method="GetFolders"} 0 +grafana_folder_id_api_count{method="RestoreDashboardVersion"} 0 +grafana_folder_id_api_count{method="Search"} 0 +grafana_folder_id_api_count{method="UpdateFolderPermissions"} 0 +grafana_folder_id_api_count{method="getDashboardACL"} 0 +grafana_folder_id_api_count{method="getFolderACL"} 0 +grafana_folder_id_api_count{method="newToFolderDto"} 0 +grafana_folder_id_api_count{method="searchFolders"} 0 +# HELP grafana_folder_id_service_count counter for folder id usage in service package +# TYPE grafana_folder_id_service_count counter +grafana_folder_id_service_count{service="Search"} 0 +grafana_folder_id_service_count{service="accesscontrol"} 0 +grafana_folder_id_service_count{service="dashboardimport"} 0 +grafana_folder_id_service_count{service="dashboards"} 1 +grafana_folder_id_service_count{service="folder"} 0 +grafana_folder_id_service_count{service="guardian"} 0 +grafana_folder_id_service_count{service="libraryelements"} 0 +grafana_folder_id_service_count{service="librarypanels"} 0 +grafana_folder_id_service_count{service="ngalert"} 0 +grafana_folder_id_service_count{service="provisioning"} 0 +grafana_folder_id_service_count{service="publicdashboards"} 0 +# HELP grafana_frontend_boot_css_time_seconds Frontend boot initial css load +# TYPE grafana_frontend_boot_css_time_seconds histogram +grafana_frontend_boot_css_time_seconds_bucket{le="0.1"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="0.25"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="0.5"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="1"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="1.5"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="2"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="5"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="10"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="20"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="40"} 0 +grafana_frontend_boot_css_time_seconds_bucket{le="123"} 0 +grafana_frontend_boot_css_time_seconds_sum 0 +grafana_frontend_boot_css_time_seconds_count 0 +# HELP grafana_frontend_boot_first_contentful_paint_time_seconds Frontend boot first contentful paint +# TYPE grafana_frontend_boot_first_contentful_paint_time_seconds histogram +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="0.1"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="0.25"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="0.5"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="1"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="1.5"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="2"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="5"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="10"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="20"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="40"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_bucket{le="123"} 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_sum 0 +grafana_frontend_boot_first_contentful_paint_time_seconds_count 0 +# HELP grafana_frontend_boot_first_paint_time_seconds Frontend boot first paint +# TYPE grafana_frontend_boot_first_paint_time_seconds histogram +grafana_frontend_boot_first_paint_time_seconds_bucket{le="0.1"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="0.25"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="0.5"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="1"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="1.5"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="2"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="5"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="10"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="20"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="40"} 0 +grafana_frontend_boot_first_paint_time_seconds_bucket{le="123"} 0 +grafana_frontend_boot_first_paint_time_seconds_sum 0 +grafana_frontend_boot_first_paint_time_seconds_count 0 +# HELP grafana_frontend_boot_js_done_time_seconds Frontend boot initial js load +# TYPE grafana_frontend_boot_js_done_time_seconds histogram +grafana_frontend_boot_js_done_time_seconds_bucket{le="0.1"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="0.25"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="0.5"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="1"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="1.5"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="2"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="5"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="10"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="20"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="40"} 0 +grafana_frontend_boot_js_done_time_seconds_bucket{le="123"} 0 +grafana_frontend_boot_js_done_time_seconds_sum 0 +grafana_frontend_boot_js_done_time_seconds_count 0 +# HELP grafana_frontend_boot_load_time_seconds Frontend boot time measurement +# TYPE grafana_frontend_boot_load_time_seconds histogram +grafana_frontend_boot_load_time_seconds_bucket{le="0.1"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="0.25"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="0.5"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="1"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="1.5"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="2"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="5"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="10"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="20"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="40"} 0 +grafana_frontend_boot_load_time_seconds_bucket{le="123"} 0 +grafana_frontend_boot_load_time_seconds_sum 0 +grafana_frontend_boot_load_time_seconds_count 0 +# HELP grafana_frontend_plugins_preload_ms Frontend preload plugin time measurement +# TYPE grafana_frontend_plugins_preload_ms histogram +grafana_frontend_plugins_preload_ms_bucket{le="0.1"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="0.25"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="0.5"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="1"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="1.5"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="2"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="5"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="10"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="20"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="40"} 0 +grafana_frontend_plugins_preload_ms_bucket{le="123"} 0 +grafana_frontend_plugins_preload_ms_sum 0 +grafana_frontend_plugins_preload_ms_count 0 +# HELP grafana_hidden_metrics_total [BETA] The count of hidden metrics. +# TYPE grafana_hidden_metrics_total counter +grafana_hidden_metrics_total 0 +# HELP grafana_http_request_duration_seconds Histogram of latencies for HTTP requests. +# TYPE grafana_http_request_duration_seconds histogram +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.005"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.01"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.025"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.05"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.1"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.25"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="0.5"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="1"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="2.5"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="5"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="10"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="25"} 283 +grafana_http_request_duration_seconds_bucket{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server",le="123"} 283 +grafana_http_request_duration_seconds_sum{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server"} 0.07399296300000001 +grafana_http_request_duration_seconds_count{handler="/",method="GET",slo_group="high-fast",status_code="302",status_source="server"} 283 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.005"} 7 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.01"} 59 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.025"} 104 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.05"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.1"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.25"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="0.5"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="1"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="2.5"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="5"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="10"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="25"} 105 +grafana_http_request_duration_seconds_bucket{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server",le="123"} 105 +grafana_http_request_duration_seconds_sum{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server"} 1.02655513 +grafana_http_request_duration_seconds_count{handler="/metrics",method="GET",slo_group="high-fast",status_code="200",status_source="server"} 105 +# HELP grafana_http_request_in_flight A gauge of requests currently being served by Grafana. +# TYPE grafana_http_request_in_flight gauge +grafana_http_request_in_flight 1 +# HELP grafana_idforwarding_idforwarding_failed_token_signing_total Number of failed token signings +# TYPE grafana_idforwarding_idforwarding_failed_token_signing_total counter +grafana_idforwarding_idforwarding_failed_token_signing_total 0 +# HELP grafana_idforwarding_idforwarding_token_signing_duration_seconds Histogram of token signing duration +# TYPE grafana_idforwarding_idforwarding_token_signing_duration_seconds histogram +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="0.1"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="0.25"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="0.5"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="1"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="2"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="5"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="10"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_bucket{le="123"} 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_sum 0 +grafana_idforwarding_idforwarding_token_signing_duration_seconds_count 0 +# HELP grafana_idforwarding_idforwarding_token_signing_from_cache_total Number of signed tokens retrieved from cache +# TYPE grafana_idforwarding_idforwarding_token_signing_from_cache_total counter +grafana_idforwarding_idforwarding_token_signing_from_cache_total 0 +# HELP grafana_idforwarding_idforwarding_token_signing_total Number of token signings +# TYPE grafana_idforwarding_idforwarding_token_signing_total counter +grafana_idforwarding_idforwarding_token_signing_total 0 +# HELP grafana_index_server_index_size Size of the index in bytes - only for file-based indices +# TYPE grafana_index_server_index_size gauge +grafana_index_server_index_size 0 +# HELP grafana_instance_start_total counter for started instances +# TYPE grafana_instance_start_total counter +grafana_instance_start_total 1 +# HELP grafana_ldap_users_sync_execution_time summary for LDAP users sync execution duration +# TYPE grafana_ldap_users_sync_execution_time summary +grafana_ldap_users_sync_execution_time{quantile="0.5"} 123 +grafana_ldap_users_sync_execution_time{quantile="0.9"} 123 +grafana_ldap_users_sync_execution_time{quantile="0.99"} 123 +grafana_ldap_users_sync_execution_time_sum 0 +grafana_ldap_users_sync_execution_time_count 0 +# HELP grafana_live_broker_redis_pub_sub_dropped_messages Number of dropped messages on application level in Redis PUB/SUB. +# TYPE grafana_live_broker_redis_pub_sub_dropped_messages counter +grafana_live_broker_redis_pub_sub_dropped_messages{broker_name="",channel_type="client"} 0 +grafana_live_broker_redis_pub_sub_dropped_messages{broker_name="",channel_type="control"} 0 +# HELP grafana_live_client_command_duration_seconds Client command duration summary. +# TYPE grafana_live_client_command_duration_seconds summary +grafana_live_client_command_duration_seconds{channel_namespace="",method="connect",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="connect",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="connect",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="connect"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="connect"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="history",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="history",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="history",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="history"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="history"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="presence"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="presence"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence_stats",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence_stats",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="presence_stats",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="presence_stats"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="presence_stats"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="publish",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="publish",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="publish",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="publish"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="publish"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="refresh",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="refresh",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="refresh",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="refresh"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="refresh"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="rpc",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="rpc",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="rpc",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="rpc"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="rpc"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="send",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="send",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="send",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="send"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="send"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="sub_refresh",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="sub_refresh",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="sub_refresh",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="sub_refresh"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="sub_refresh"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="subscribe",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="subscribe",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="subscribe",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="subscribe"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="subscribe"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unknown",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unknown",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unknown",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="unknown"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="unknown"} 0 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unsubscribe",quantile="0.5"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unsubscribe",quantile="0.99"} 123 +grafana_live_client_command_duration_seconds{channel_namespace="",method="unsubscribe",quantile="0.999"} 123 +grafana_live_client_command_duration_seconds_sum{channel_namespace="",method="unsubscribe"} 0 +grafana_live_client_command_duration_seconds_count{channel_namespace="",method="unsubscribe"} 0 +# HELP grafana_live_node_build Node build info. +# TYPE grafana_live_node_build gauge +grafana_live_node_build{version="_"} 1 +# HELP grafana_live_node_messages_received_count Number of messages received from broker. +# TYPE grafana_live_node_messages_received_count counter +grafana_live_node_messages_received_count{channel_namespace="",type="control"} 478 +grafana_live_node_messages_received_count{channel_namespace="",type="join"} 0 +grafana_live_node_messages_received_count{channel_namespace="",type="leave"} 0 +grafana_live_node_messages_received_count{channel_namespace="",type="publication"} 0 +# HELP grafana_live_node_messages_sent_count Number of messages sent by node to broker. +# TYPE grafana_live_node_messages_sent_count counter +grafana_live_node_messages_sent_count{channel_namespace="",type="control"} 478 +grafana_live_node_messages_sent_count{channel_namespace="",type="join"} 0 +grafana_live_node_messages_sent_count{channel_namespace="",type="leave"} 0 +grafana_live_node_messages_sent_count{channel_namespace="",type="publication"} 0 +# HELP grafana_live_node_num_channels Number of channels with one or more subscribers. +# TYPE grafana_live_node_num_channels gauge +grafana_live_node_num_channels 0 +# HELP grafana_live_node_num_clients Number of clients connected. +# TYPE grafana_live_node_num_clients gauge +grafana_live_node_num_clients 0 +# HELP grafana_live_node_num_nodes Number of nodes in the cluster. +# TYPE grafana_live_node_num_nodes gauge +grafana_live_node_num_nodes 1 +# HELP grafana_live_node_num_subscriptions Number of subscriptions. +# TYPE grafana_live_node_num_subscriptions gauge +grafana_live_node_num_subscriptions 0 +# HELP grafana_live_node_num_users Number of unique users connected. +# TYPE grafana_live_node_num_users gauge +grafana_live_node_num_users 0 +# HELP grafana_live_node_pub_sub_lag_seconds Pub sub lag in seconds +# TYPE grafana_live_node_pub_sub_lag_seconds histogram +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.001"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.005"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.01"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.025"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.05"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.1"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.2"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="0.5"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="1"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="2"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="5"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="10"} 0 +grafana_live_node_pub_sub_lag_seconds_bucket{le="123"} 0 +grafana_live_node_pub_sub_lag_seconds_sum 0 +grafana_live_node_pub_sub_lag_seconds_count 0 +# HELP grafana_page_response_status_total page http response status +# TYPE grafana_page_response_status_total counter +grafana_page_response_status_total{code="200"} 105 +grafana_page_response_status_total{code="404"} 0 +grafana_page_response_status_total{code="500"} 0 +grafana_page_response_status_total{code="unknown"} 283 +# HELP grafana_plugin_build_info A metric with a constant '1' value labeled by pluginId, pluginType and version from which Grafana plugin was built +# TYPE grafana_plugin_build_info gauge +grafana_plugin_build_info{plugin_id="grafana-exploretraces-app",plugin_type="app",signature_status="valid",version="1.2.0"} 1 +grafana_plugin_build_info{plugin_id="grafana-lokiexplore-app",plugin_type="app",signature_status="valid",version="1.0.30"} 1 +grafana_plugin_build_info{plugin_id="grafana-metricsdrilldown-app",plugin_type="app",signature_status="valid",version="1.0.20"} 1 +grafana_plugin_build_info{plugin_id="grafana-pyroscope-app",plugin_type="app",signature_status="valid",version="1.11.0"} 1 +# HELP grafana_plugin_target_info A metric with a constant '1' value labeled by pluginId and target +# TYPE grafana_plugin_target_info gauge +grafana_plugin_target_info{plugin_id="cloudwatch",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="elasticsearch",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="grafana",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="grafana-azure-monitor-datasource",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="grafana-postgresql-datasource",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="grafana-pyroscope-datasource",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="grafana-testdata-datasource",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="graphite",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="influxdb",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="jaeger",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="loki",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="mssql",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="mysql",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="opentsdb",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="parca",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="prometheus",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="stackdriver",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="tempo",target="in_memory"} 1 +grafana_plugin_target_info{plugin_id="zipkin",target="in_memory"} 1 +# HELP grafana_plugins_preinstall_duration_seconds Plugin preinstallation duration +# TYPE grafana_plugins_preinstall_duration_seconds histogram +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.005"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.01"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.025"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.05"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.25"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="0.5"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="2.5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="10"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="25"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="50"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="100"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-exploretraces-app",version="",le="123"} 1 +grafana_plugins_preinstall_duration_seconds_sum{plugin_id="grafana-exploretraces-app",version=""} 2.002388085 +grafana_plugins_preinstall_duration_seconds_count{plugin_id="grafana-exploretraces-app",version=""} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.005"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.01"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.025"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.05"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.25"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="0.5"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="2.5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="10"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="25"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="50"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="100"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-lokiexplore-app",version="",le="123"} 1 +grafana_plugins_preinstall_duration_seconds_sum{plugin_id="grafana-lokiexplore-app",version=""} 2.19947971 +grafana_plugins_preinstall_duration_seconds_count{plugin_id="grafana-lokiexplore-app",version=""} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.005"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.01"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.025"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.05"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.25"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="0.5"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="2.5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="10"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="25"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="50"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="100"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-metricsdrilldown-app",version="",le="123"} 1 +grafana_plugins_preinstall_duration_seconds_sum{plugin_id="grafana-metricsdrilldown-app",version=""} 1.097094333 +grafana_plugins_preinstall_duration_seconds_count{plugin_id="grafana-metricsdrilldown-app",version=""} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.005"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.01"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.025"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.05"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.25"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="0.5"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="1"} 0 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="2.5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="5"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="10"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="25"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="50"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="100"} 1 +grafana_plugins_preinstall_duration_seconds_bucket{plugin_id="grafana-pyroscope-app",version="",le="123"} 1 +grafana_plugins_preinstall_duration_seconds_sum{plugin_id="grafana-pyroscope-app",version=""} 1.996964459 +grafana_plugins_preinstall_duration_seconds_count{plugin_id="grafana-pyroscope-app",version=""} 1 +# HELP grafana_plugins_preinstall_total The total amount of plugin preinstallations +# TYPE grafana_plugins_preinstall_total counter +grafana_plugins_preinstall_total{plugin_id="grafana-exploretraces-app",version=""} 1 +grafana_plugins_preinstall_total{plugin_id="grafana-lokiexplore-app",version=""} 1 +grafana_plugins_preinstall_total{plugin_id="grafana-metricsdrilldown-app",version=""} 1 +grafana_plugins_preinstall_total{plugin_id="grafana-pyroscope-app",version=""} 1 +# HELP grafana_process_cpu_seconds_total Total user and system CPU time spent in seconds. +# TYPE grafana_process_cpu_seconds_total counter +grafana_process_cpu_seconds_total 11.17 +# HELP grafana_process_max_fds Maximum number of open file descriptors. +# TYPE grafana_process_max_fds gauge +grafana_process_max_fds 1.048576e+06 +# HELP grafana_process_network_receive_bytes_total Number of bytes received by the process over the network. +# TYPE grafana_process_network_receive_bytes_total counter +grafana_process_network_receive_bytes_total 2.0380018e+07 +# HELP grafana_process_network_transmit_bytes_total Number of bytes sent by the process over the network. +# TYPE grafana_process_network_transmit_bytes_total counter +grafana_process_network_transmit_bytes_total 2.668869e+06 +# HELP grafana_process_open_fds Number of open file descriptors. +# TYPE grafana_process_open_fds gauge +grafana_process_open_fds 11 +# HELP grafana_process_resident_memory_bytes Resident memory size in bytes. +# TYPE grafana_process_resident_memory_bytes gauge +grafana_process_resident_memory_bytes 2.82636288e+08 +# HELP grafana_process_start_time_seconds Start time of the process since unix epoch in seconds. +# TYPE grafana_process_start_time_seconds gauge +grafana_process_start_time_seconds 1.76199008856e+09 +# HELP grafana_process_virtual_memory_bytes Virtual memory size in bytes. +# TYPE grafana_process_virtual_memory_bytes gauge +grafana_process_virtual_memory_bytes 1.786187776e+09 +# HELP grafana_process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes. +# TYPE grafana_process_virtual_memory_max_bytes gauge +grafana_process_virtual_memory_max_bytes 1.8446744073709552e+19 +# HELP grafana_proxy_response_status_total proxy http response status +# TYPE grafana_proxy_response_status_total counter +grafana_proxy_response_status_total{code="200"} 0 +grafana_proxy_response_status_total{code="404"} 0 +grafana_proxy_response_status_total{code="500"} 0 +grafana_proxy_response_status_total{code="unknown"} 0 +# HELP grafana_public_dashboard_request_count counter for public dashboards requests +# TYPE grafana_public_dashboard_request_count counter +grafana_public_dashboard_request_count 0 +# HELP grafana_registered_metrics_total [BETA] The count of registered metrics broken by stability level and deprecation version. +# TYPE grafana_registered_metrics_total counter +grafana_registered_metrics_total{deprecated_version="",stability_level="ALPHA"} 122 +grafana_registered_metrics_total{deprecated_version="",stability_level="BETA"} 13 +grafana_registered_metrics_total{deprecated_version="",stability_level="STABLE"} 12 +grafana_registered_metrics_total{deprecated_version="1.27.0",stability_level="ALPHA"} 1 +grafana_registered_metrics_total{deprecated_version="1.28.0",stability_level="ALPHA"} 1 +grafana_registered_metrics_total{deprecated_version="1.30.0",stability_level="ALPHA"} 3 +grafana_registered_metrics_total{deprecated_version="1.31.0",stability_level="ALPHA"} 1 +# HELP grafana_rendering_queue_size size of rendering queue +# TYPE grafana_rendering_queue_size gauge +grafana_rendering_queue_size 0 +# HELP grafana_search_dashboard_search_failures_duration_seconds +# TYPE grafana_search_dashboard_search_failures_duration_seconds histogram +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.005"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.01"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.025"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.05"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.1"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.25"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="0.5"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="1"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="2.5"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="5"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="10"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="25"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="50"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="100"} 0 +grafana_search_dashboard_search_failures_duration_seconds_bucket{le="123"} 0 +grafana_search_dashboard_search_failures_duration_seconds_sum 0 +grafana_search_dashboard_search_failures_duration_seconds_count 0 +# HELP grafana_search_dashboard_search_successes_duration_seconds +# TYPE grafana_search_dashboard_search_successes_duration_seconds histogram +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.005"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.01"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.025"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.05"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.1"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.25"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="0.5"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="1"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="2.5"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="5"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="10"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="25"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="50"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="100"} 0 +grafana_search_dashboard_search_successes_duration_seconds_bucket{le="123"} 0 +grafana_search_dashboard_search_successes_duration_seconds_sum 0 +grafana_search_dashboard_search_successes_duration_seconds_count 0 +# HELP grafana_stat_active_users number of active users +# TYPE grafana_stat_active_users gauge +grafana_stat_active_users 0 +# HELP grafana_stat_failed_migrated_api_keys_to_sa_tokens total number of failed migrations of API keys to service account tokens +# TYPE grafana_stat_failed_migrated_api_keys_to_sa_tokens gauge +grafana_stat_failed_migrated_api_keys_to_sa_tokens 0 +# HELP grafana_stat_successfully_migrated_api_keys_to_sa_tokens total number of successful migrations of API keys to service account tokens +# TYPE grafana_stat_successfully_migrated_api_keys_to_sa_tokens gauge +grafana_stat_successfully_migrated_api_keys_to_sa_tokens 0 +# HELP grafana_stat_total_migrated_api_keys_to_sa_tokens total number of API keys to be migrated to service account tokens +# TYPE grafana_stat_total_migrated_api_keys_to_sa_tokens gauge +grafana_stat_total_migrated_api_keys_to_sa_tokens 0 +# HELP grafana_stat_total_orgs total amount of orgs +# TYPE grafana_stat_total_orgs gauge +grafana_stat_total_orgs 1 +# HELP grafana_stat_total_playlists total amount of playlists +# TYPE grafana_stat_total_playlists gauge +grafana_stat_total_playlists 0 +# HELP grafana_stat_total_service_account_tokens total amount of service account tokens +# TYPE grafana_stat_total_service_account_tokens gauge +grafana_stat_total_service_account_tokens 0 +# HELP grafana_stat_total_service_accounts total amount of service accounts +# TYPE grafana_stat_total_service_accounts gauge +grafana_stat_total_service_accounts 0 +# HELP grafana_stat_total_service_accounts_role_none total amount of service accounts with no role +# TYPE grafana_stat_total_service_accounts_role_none gauge +grafana_stat_total_service_accounts_role_none 0 +# HELP grafana_stat_total_teams total amount of teams +# TYPE grafana_stat_total_teams gauge +grafana_stat_total_teams 0 +# HELP grafana_stat_total_users total amount of users +# TYPE grafana_stat_total_users gauge +grafana_stat_total_users 1 +# HELP grafana_stat_totals_active_admins total amount of active admins +# TYPE grafana_stat_totals_active_admins gauge +grafana_stat_totals_active_admins 0 +# HELP grafana_stat_totals_active_editors total amount of active editors +# TYPE grafana_stat_totals_active_editors gauge +grafana_stat_totals_active_editors 0 +# HELP grafana_stat_totals_active_viewers total amount of active viewers +# TYPE grafana_stat_totals_active_viewers gauge +grafana_stat_totals_active_viewers 0 +# HELP grafana_stat_totals_admins total amount of admins +# TYPE grafana_stat_totals_admins gauge +grafana_stat_totals_admins 1 +# HELP grafana_stat_totals_alert_rules total amount of alert rules in the database +# TYPE grafana_stat_totals_alert_rules gauge +grafana_stat_totals_alert_rules 0 +# HELP grafana_stat_totals_annotations total amount of annotations in the database +# TYPE grafana_stat_totals_annotations gauge +grafana_stat_totals_annotations 0 +# HELP grafana_stat_totals_correlations total amount of correlations +# TYPE grafana_stat_totals_correlations gauge +grafana_stat_totals_correlations 0 +# HELP grafana_stat_totals_dashboard total amount of dashboards +# TYPE grafana_stat_totals_dashboard gauge +grafana_stat_totals_dashboard 0 +# HELP grafana_stat_totals_dashboard_versions total amount of dashboard versions in the database +# TYPE grafana_stat_totals_dashboard_versions gauge +grafana_stat_totals_dashboard_versions 0 +# HELP grafana_stat_totals_data_keys total amount of data keys in the database +# TYPE grafana_stat_totals_data_keys gauge +grafana_stat_totals_data_keys{active="false"} 0 +grafana_stat_totals_data_keys{active="true"} 0 +# HELP grafana_stat_totals_editors total amount of editors +# TYPE grafana_stat_totals_editors gauge +grafana_stat_totals_editors 0 +# HELP grafana_stat_totals_folder total amount of folders +# TYPE grafana_stat_totals_folder gauge +grafana_stat_totals_folder 0 +# HELP grafana_stat_totals_library_panels total amount of library panels in the database +# TYPE grafana_stat_totals_library_panels gauge +grafana_stat_totals_library_panels 0 +# HELP grafana_stat_totals_library_variables total amount of library variables in the database +# TYPE grafana_stat_totals_library_variables gauge +grafana_stat_totals_library_variables 0 +# HELP grafana_stat_totals_public_dashboard total amount of public dashboards +# TYPE grafana_stat_totals_public_dashboard gauge +grafana_stat_totals_public_dashboard 0 +# HELP grafana_stat_totals_rule_groups total amount of alert rule groups in the database +# TYPE grafana_stat_totals_rule_groups gauge +grafana_stat_totals_rule_groups 0 +# HELP grafana_stat_totals_viewers total amount of viewers +# TYPE grafana_stat_totals_viewers gauge +grafana_stat_totals_viewers 0 +# HELP grafana_storage_server_poller_query_latency_seconds poller query latency +# TYPE grafana_storage_server_poller_query_latency_seconds histogram +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.005"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.01"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.025"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.05"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.1"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.25"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="0.5"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="1"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="2.5"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="5"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="10"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="25"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="50"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="100"} 0 +grafana_storage_server_poller_query_latency_seconds_bucket{le="123"} 0 +grafana_storage_server_poller_query_latency_seconds_sum 0 +grafana_storage_server_poller_query_latency_seconds_count 0 +# HELP loki_experimental_features_in_use_total The number of experimental features in use. +# TYPE loki_experimental_features_in_use_total counter +loki_experimental_features_in_use_total 0 +# HELP openfga_cachecontroller_cache_hit_count The total number of cache hits from cachecontroller requests. +# TYPE openfga_cachecontroller_cache_hit_count counter +openfga_cachecontroller_cache_hit_count 0 +# HELP openfga_cachecontroller_cache_invalidation_count The total number of invalidations performed by the cache controller. +# TYPE openfga_cachecontroller_cache_invalidation_count counter +openfga_cachecontroller_cache_invalidation_count 0 +# HELP openfga_cachecontroller_cache_total_count The total number of cachecontroller requests. +# TYPE openfga_cachecontroller_cache_total_count counter +openfga_cachecontroller_cache_total_count 0 +# HELP openfga_check_cache_hit_count The total number of cache hits for ResolveCheck. +# TYPE openfga_check_cache_hit_count counter +openfga_check_cache_hit_count 0 +# HELP openfga_check_cache_invalid_hit_count The total number of cache hits for ResolveCheck that were discarded because they were invalidated. +# TYPE openfga_check_cache_invalid_hit_count counter +openfga_check_cache_invalid_hit_count 0 +# HELP openfga_check_cache_total_count The total number of calls to ResolveCheck. +# TYPE openfga_check_cache_total_count counter +openfga_check_cache_total_count 0 +# HELP openfga_condition_compilation_duration_ms A histogram measuring the compilation time (in milliseconds) of a Condition. +# TYPE openfga_condition_compilation_duration_ms histogram +openfga_condition_compilation_duration_ms_bucket{le="1"} 0 +openfga_condition_compilation_duration_ms_bucket{le="5"} 0 +openfga_condition_compilation_duration_ms_bucket{le="15"} 0 +openfga_condition_compilation_duration_ms_bucket{le="50"} 0 +openfga_condition_compilation_duration_ms_bucket{le="100"} 0 +openfga_condition_compilation_duration_ms_bucket{le="250"} 0 +openfga_condition_compilation_duration_ms_bucket{le="500"} 0 +openfga_condition_compilation_duration_ms_bucket{le="1000"} 0 +openfga_condition_compilation_duration_ms_bucket{le="123"} 0 +openfga_condition_compilation_duration_ms_sum 0 +openfga_condition_compilation_duration_ms_count 0 +# HELP openfga_condition_evaluation_cost A histogram of the CEL evaluation cost of a Condition in a Relationship Tuple +# TYPE openfga_condition_evaluation_cost histogram +openfga_condition_evaluation_cost_bucket{le="0"} 0 +openfga_condition_evaluation_cost_bucket{le="11.11111111111111"} 0 +openfga_condition_evaluation_cost_bucket{le="22.22222222222222"} 0 +openfga_condition_evaluation_cost_bucket{le="33.33333333333333"} 0 +openfga_condition_evaluation_cost_bucket{le="44.44444444444444"} 0 +openfga_condition_evaluation_cost_bucket{le="55.55555555555556"} 0 +openfga_condition_evaluation_cost_bucket{le="66.66666666666667"} 0 +openfga_condition_evaluation_cost_bucket{le="77.77777777777779"} 0 +openfga_condition_evaluation_cost_bucket{le="88.8888888888889"} 0 +openfga_condition_evaluation_cost_bucket{le="123"} 0 +openfga_condition_evaluation_cost_sum 0 +openfga_condition_evaluation_cost_count 0 +# HELP openfga_condition_evaluation_duration_ms A histogram measuring the evaluation time (in milliseconds) of a Condition. +# TYPE openfga_condition_evaluation_duration_ms histogram +openfga_condition_evaluation_duration_ms_bucket{le="0.1"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="0.25"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="0.5"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="1"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="5"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="15"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="50"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="100"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="250"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="500"} 0 +openfga_condition_evaluation_duration_ms_bucket{le="123"} 0 +openfga_condition_evaluation_duration_ms_sum 0 +openfga_condition_evaluation_duration_ms_count 0 +# HELP openfga_list_objects_further_eval_required_count Number of objects in a ListObjects call that needed to issue a Check call to determine a final result +# TYPE openfga_list_objects_further_eval_required_count counter +openfga_list_objects_further_eval_required_count 0 +# HELP openfga_list_objects_no_further_eval_required_count Number of objects in a ListObjects call that needed to issue a Check call to determine a final result +# TYPE openfga_list_objects_no_further_eval_required_count counter +openfga_list_objects_no_further_eval_required_count 0 +# HELP openfga_shared_iterator_count The current number of items of shared iterator. +# TYPE openfga_shared_iterator_count gauge +openfga_shared_iterator_count 0 +# HELP openfga_shared_iterator_watchdog_timer_triggered Total number of times watchdog timer is triggered. +# TYPE openfga_shared_iterator_watchdog_timer_triggered counter +openfga_shared_iterator_watchdog_timer_triggered 0 +# HELP plugins_active_instances The number of active plugin instances +# TYPE plugins_active_instances gauge +plugins_active_instances 0 +# HELP plugins_datasource_instances_total The total number of data source instances created +# TYPE plugins_datasource_instances_total counter +plugins_datasource_instances_total 0 +# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds. +# TYPE process_cpu_seconds_total counter +process_cpu_seconds_total 11.17 +# HELP process_max_fds Maximum number of open file descriptors. +# TYPE process_max_fds gauge +process_max_fds 1.048576e+06 +# HELP process_network_receive_bytes_total Number of bytes received by the process over the network. +# TYPE process_network_receive_bytes_total counter +process_network_receive_bytes_total 2.0380018e+07 +# HELP process_network_transmit_bytes_total Number of bytes sent by the process over the network. +# TYPE process_network_transmit_bytes_total counter +process_network_transmit_bytes_total 2.668869e+06 +# HELP process_open_fds Number of open file descriptors. +# TYPE process_open_fds gauge +process_open_fds 11 +# HELP process_resident_memory_bytes Resident memory size in bytes. +# TYPE process_resident_memory_bytes gauge +process_resident_memory_bytes 2.82636288e+08 +# HELP process_start_time_seconds Start time of the process since unix epoch in seconds. +# TYPE process_start_time_seconds gauge +process_start_time_seconds 1.76199008856e+09 +# HELP process_virtual_memory_bytes Virtual memory size in bytes. +# TYPE process_virtual_memory_bytes gauge +process_virtual_memory_bytes 1.786187776e+09 +# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes. +# TYPE process_virtual_memory_max_bytes gauge +process_virtual_memory_max_bytes 1.8446744073709552e+19 +# HELP prometheus_template_text_expansion_failures_total The total number of template text expansion failures. +# TYPE prometheus_template_text_expansion_failures_total counter +prometheus_template_text_expansion_failures_total 0 +# HELP prometheus_template_text_expansions_total The total number of template text expansions. +# TYPE prometheus_template_text_expansions_total counter +prometheus_template_text_expansions_total 0 +# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served. +# TYPE promhttp_metric_handler_requests_in_flight gauge +promhttp_metric_handler_requests_in_flight 0 +# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code. +# TYPE promhttp_metric_handler_requests_total counter +promhttp_metric_handler_requests_total{code="200"} 0 +promhttp_metric_handler_requests_total{code="500"} 0 +promhttp_metric_handler_requests_total{code="503"} 0 diff --git a/grafana/tests/test_e2e.py b/grafana/tests/test_e2e.py new file mode 100644 index 0000000000..15096545cb --- /dev/null +++ b/grafana/tests/test_e2e.py @@ -0,0 +1,14 @@ +import pytest + +from datadog_checks.base.constants import ServiceCheck +from datadog_checks.dev.utils import get_metadata_metrics + + +@pytest.mark.e2e +def test_metrics(dd_agent_check): + aggregator = dd_agent_check(check_rate=True) + + aggregator.assert_metric("grafana.build_info") + aggregator.assert_service_check('grafana.openmetrics.health', ServiceCheck.OK, at_least=1) + + aggregator.assert_metrics_using_metadata(get_metadata_metrics()) diff --git a/grafana/tests/test_unit.py b/grafana/tests/test_unit.py new file mode 100644 index 0000000000..9db3e03b5d --- /dev/null +++ b/grafana/tests/test_unit.py @@ -0,0 +1,26 @@ +from pathlib import Path + +import pytest + +from datadog_checks.dev.utils import get_metadata_metrics +from datadog_checks.grafana import GrafanaCheck + +from .common import METRICS + + +def test_check(dd_run_check, aggregator, instance, mock_http_response): + mock_http_response(file_path=Path(__file__).parent.absolute() / "fixtures" / "grafana_metrics.txt") + check = GrafanaCheck('grafana', {}, [instance]) + dd_run_check(check) + for m in METRICS: + aggregator.assert_metric(m) + aggregator.assert_all_metrics_covered() + aggregator.assert_metrics_using_metadata(get_metadata_metrics()) + + +def test_emits_critical_service_check_when_service_is_down(dd_run_check, aggregator, instance, mock_http_response): + mock_http_response(status_code=404) + check = GrafanaCheck('grafana', {}, [instance]) + with pytest.raises(Exception, match="requests.exceptions.HTTPError"): + dd_run_check(check) + aggregator.assert_service_check('grafana.openmetrics.health', GrafanaCheck.CRITICAL)