Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The metrics collected by prometheus are not continuous #29378

Open
vitaaaaa1 opened this issue Jan 22, 2025 · 0 comments
Open

The metrics collected by prometheus are not continuous #29378

vitaaaaa1 opened this issue Jan 22, 2025 · 0 comments

Comments

@vitaaaaa1
Copy link

I turned on the configuration of prometheus collection metrics when installing vault with helm

server.standalone.config:
config: |-
      ui = true

      listener "tcp" {
        tls_disable = 1
        address = "[::]:8200"
        cluster_address = "[::]:8201"
        # Enable unauthenticated metrics access (necessary for Prometheus Operator)
        telemetry {
          unauthenticated_metrics_access = "true"
        }
      }
      storage "file" {
        path = "/vault/data"
      }

      # Example configuration for using auto-unseal, using Google Cloud KMS. The
      # GKMS keys must already exist, and the cluster must have a service account
      # that is authorized to access GCP KMS.
      #seal "gcpckms" {
      #   project     = "vault-helm-dev"
      #   region      = "global"
      #   key_ring    = "vault-helm-unseal-kr"
      #   crypto_key  = "vault-helm-unseal-key"
      #}

      # Example configuration for enabling Prometheus metrics in your config.
      telemetry {
        prometheus_retention_time = "30s"
        disable_hostname = true
      }

The serviceMonitor option is set to true

serverTelemetry.serviceMonitor.enabled: ture
serverTelemetry.serviceMonitor.interval: 30s
serverTelemetry.serviceMonitor.scrapeTimeout: 10s

prometheus is now collecting data normally, but the metrics are not continuous, which is strange

Image
The data is not continuous
Image
This causes the Federated Center to collect this prometheus instance without getting data, and I wonder if this is a configuration issue or if the vault exposed metrics are inherently intermittent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants