pub.chive.admin.getPrometheusMetrics

chive.pub

{
  "id": "pub.chive.admin.getPrometheusMetrics",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "AdminRequired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "metrics",
            "timestamp"
          ],
          "properties": {
            "metrics": {
              "type": "array",
              "items": {
                "ref": "#prometheusMetric",
                "type": "ref"
              },
              "description": "Prometheus metric entries"
            },
            "timestamp": {
              "type": "string",
              "format": "datetime",
              "description": "Timestamp of the metrics snapshot"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {}
      },
      "description": "Get Prometheus metrics as JSON"
    },
    "labelSet": {
      "type": "object",
      "properties": {},
      "description": "Key-value pairs for metric labels"
    },
    "metricValue": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "string",
          "description": "Metric value (numeric string)"
        },
        "labels": {
          "ref": "#labelSet",
          "type": "ref",
          "description": "Label key-value pairs"
        },
        "exemplar": {
          "type": "string",
          "description": "Optional exemplar value (numeric string)"
        }
      },
      "description": "A single metric value with its label set"
    },
    "prometheusMetric": {
      "type": "object",
      "required": [
        "name",
        "help",
        "type",
        "values"
      ],
      "properties": {
        "help": {
          "type": "string",
          "description": "Metric help text"
        },
        "name": {
          "type": "string",
          "description": "Metric name"
        },
        "type": {
          "type": "string",
          "description": "Metric type",
          "knownValues": [
            "counter",
            "gauge",
            "histogram",
            "summary"
          ]
        },
        "values": {
          "type": "array",
          "items": {
            "ref": "#metricValue",
            "type": "ref"
          },
          "description": "Metric values with labels"
        }
      },
      "description": "A single Prometheus metric with its values"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.admin.getPrometheusMetrics

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:7natp5xae72bddaqlkef2t4e
CID
bafyreia5v7xnfpn4ffqlb7aonk37tsdzqzak6adrkqgpdiubcf3j3ejfoe
Indexed At
2026-05-04 17:29 UTC
AT-URI
at://did:plc:7natp5xae72bddaqlkef2t4e/com.atproto.lexicon.schema/pub.chive.admin.getPrometheusMetrics

Lexicon Garden

@