influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.28k stars 3.51k forks source link

Missing _monitoring system bucket #24918

Open qdel opened 3 months ago

qdel commented 3 months ago

Steps to reproduce:

$> influx bucket list
ID                      Name            Retention       Shard group duration    Organization ID         Schema Type
1f0b7f93eee31365        _tasks          72h0m0s         24h0m0s                 0fb9ddd02e0b86db        implicit
5ac999f5d8a9894a        batterystats    infinite        168h0m0s                0fb9ddd02e0b86db        implicit
23e6a8a6b5544aeb        default         168h0m0s        24h0m0s                 0fb9ddd02e0b86db        implicit
1e44de25ae87b286        docker          720h0m0s        24h0m0s                 0fb9ddd02e0b86db        implicit
84b910126dacae33        linky           infinite        168h0m0s                0fb9ddd02e0b86db        implicit
42c4db6643210999        nginx           720h0m0s        24h0m0s                 0fb9ddd02e0b86db        implicit
72c711e492786cd0        telegraf        2160h0m0s       24h0m0s                 0fb9ddd02e0b86db        implicit
f8241b0bbbb34483        telegraf_1m     infinite        168h0m0s                0fb9ddd02e0b86db        implicit
fbc48ead3cda9628        veolia          infinite        168h0m0s                0fb9ddd02e0b86db        implicit

Expected behaviour: _monitoring should be present

Actual behaviour: It is not

Environment info:

Very old instance, using influxdb v1. All data migration made.

Config:

Started using docker compose. But config is really simple:

  influxdb:
    image: influxdb:alpine
    ports:
      - "8086:8086"
    volumes:
      - /opt/influxdb2:/var/lib/influxdb2
    #environment:
    #  - INFLUXD_LOG_LEVEL=error
    networks:
      - super
    restart: unless-stopped
    cpu_shares: 1800

Logs:

No relevant logs found.

philjb commented 3 months ago

I don't believe v1 OSS supports _monitoring system bucket (as in I believe _monitoring was added in v2).

qdel commented 3 months ago

Indeed. I think that albeit all migrations where ok, the _monitoring bucket did not create itself.

Nearly everything is working fine. But when creating a new bucket, when I want to write new measurement in the new bucket I got errors about _monitoring bucket.

All in place systems have no troubles (maybe why I never saw the glitch before)