Skip to main content
Glama
agarwalvivek29

OpenTelemetry MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOKI_URLNoThe URL of your Loki instance
LOG_LEVELNoLogging level for the serverINFO
LOKI_PASSWORDNoPassword for Loki basic authentication
LOKI_USERNAMENoUsername for Loki basic authentication
LOKI_AUTH_TYPENoAuthentication type for Loki (none, basic, or bearer)none
PROMETHEUS_URLNoThe URL of your Prometheus instance
MCP_OIDC_ISSUERNoOIDC issuer URL for MCP server authentication
MCP_AUTH_ENABLEDNoEnable OIDC authentication for the MCP serverfalse
LOKI_BEARER_TOKENNoBearer token for Loki authentication
MCP_OIDC_AUDIENCENoOIDC audience for MCP server authentication
DEFAULT_TIME_RANGENoDefault time range for queries1h
MCP_OIDC_CLIENT_IDNoOIDC client ID for MCP server authentication
PROMETHEUS_PASSWORDNoPassword for Prometheus basic authentication
PROMETHEUS_USERNAMENoUsername for Prometheus basic authentication
PROMETHEUS_AUTH_TYPENoAuthentication type for Prometheus (none, basic, or bearer)none
PROMETHEUS_BEARER_TOKENNoBearer token for Prometheus authentication

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
query_prometheus

Execute raw PromQL instant query against Prometheus. Returns metric values at a specific point in time.

query_prometheus_range

Execute PromQL query over a time range. Returns time series data. Use this for getting metrics over time.

list_metrics

List all available metrics in Prometheus. Useful for discovering what metrics are being collected.

list_label_values

Get all values for a specific label. Common labels: 'service', 'job', 'namespace', 'instance'. Use this to discover what services/namespaces are monitored.

list_labels

Get all label names available in Prometheus. Use this to discover what labels you can filter by.

query_loki

Execute raw LogQL query against Loki. Use this to search and filter logs.

search_logs

Search logs with simple filters. Easier than writing raw LogQL queries.

list_log_labels

List all log stream labels in Loki. Use this to discover what labels are available for filtering.

list_log_label_values

Get all values for a specific log label. Common labels: 'namespace', 'job', 'app'. Use this to discover what namespaces/services have logs.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agarwalvivek29/opentelemetry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server