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

We tried using ClickHouse as a remote storage for Prometheus. #28

Open
lyl2008dsg opened this issue Apr 1, 2019 · 0 comments
Open

We tried using ClickHouse as a remote storage for Prometheus. #28

lyl2008dsg opened this issue Apr 1, 2019 · 0 comments

Comments

@lyl2008dsg
Copy link

We tried using ClickHouse as a remote storage for Prometheus.
Gauge 、Histogram and so on are satisfied,hower what should Counter of prometheus do?
It expected to provide functions like MySQL lag() or lead() ?
e.g http://www.silota.com/docs/recipes/sql-mom-growth-rate.html

I tried to store metrics with Nested, and expected Calculated Growth Rate.

CREATE TABLE IF NOT EXISTS app_metrics(
   partition Date DEFAULT toDate(timestamp),
   timestamp DateTime DEFAULT now(),
   instance_id String,
   metric String,
   tags Nested
   (
     key String,
     value String
   ),
   value Float64
  ) ENGINE = MergeTree(partition, (timestamp, metric), 8192);
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