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

Add an option to run the polkadot-introspector kvdb exporter as a sidecar #158

Open
PierreBesson opened this issue Sep 9, 2022 · 0 comments

Comments

@PierreBesson
Copy link
Contributor

The polkadot-introspector kvdb tool can be used to monitor the database continuously. We should add support for running this exporter as a sidecar in the node helm chart.

We have successfully set it up with this configuration but it feels like a lot of boilerplate to be adding for people who would like to set this up.


extraContainers:
  - name: relaychain-kvdb-introspector
    image: paritytech/polkadot-introspector:438d3406
    command: [
      "polkadot-introspector",
      "kvdb",
      "--db",
      "/data/chains/versi_v1_9/db/full",
      "--db-type",
      "rocksdb",
      "prometheus",
      "--port",
      "9620"
    ]
    resources:
      limits:
        memory: "1Gi"
    ports:
      - containerPort: 9620
        name: relay-kvdb-prom
    volumeMounts:
      - mountPath: /data
        name: chain-data
  - name: parachain-kvdb-introspector
    image: paritytech/polkadot-introspector:438d3406
    command: [
      "polkadot-introspector",
      "kvdb",
      "--db",
      "/data/chains/versi_v1_9/db/full/parachains/db",
      "--db-type",
      "rocksdb",
      "prometheus",
      "--port",
      "9621"
    ]
    resources:
      limits:
        memory: "1Gi"
    ports:
      - containerPort: 9621
        name: para-kvdb-prom
    volumeMounts:
      - mountPath: /data
        name: chain-data

Note there should be the option to run 1 or 2 sidecars. 1 to monitor the main db and 1 for the parachain db (as an option for relay chains).
We also need to create the appropriate ServiceMonitor for loading data in Prometheus.

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

No branches or pull requests

1 participant