influxdata / influxdata/influxdb

Add /metrics counter for variables

Open
#17,574 0 comments 0 reactions 0 assignees View on GitHub
area/2.x kind/enhancement team/ui
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

similar to dashboards, we should have a metric for the number of variables created in http://localhost:9999/metrics:

```
# HELP influxdb_dashboards_total Number of total dashboards on the server
# TYPE influxdb_dashboards_total counter
influxdb_dashboards_total 16
```

Contributor guide

Open the contributing guide

Research direction

Start at the /metrics endpoint and compare the existing influxdb_dashboards_total metric with the handling of variable creation. Determine the corresponding variable counter and verify that its HELP, TYPE, and value output appear correctly at /metrics.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.