How to store my own key-value pairs in Prometheus?
16 views
Skip to first unread message
Aviral Srivastava
unread,
Jun 13, 2020, 8:05:51 PM6/13/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Prometheus stores time-series data by default. In this default model, the x-axis is time and the y-axis is the value.
I want x-axis to be a number(1,2,3,....) and y-axis to be of some value(1000, 2000, 3000, ....).
How do I store that in Prometheus?
Stuart Clark
unread,
Jun 14, 2020, 3:49:20 AM6/14/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Aviral Srivastava, Prometheus Users
Prometheus isn't a general purpose database system. Datapoints are
scraped using the Prometheus metrics format from the targets you
specify, and then are stored in the TSDB against that scrape time.
It sounds like you would want a standard database like MySQL or PostgreSQL.
Ajay Kulkarni
unread,
Jun 16, 2020, 8:01:24 PM6/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Aviral Srivastava, Prometheus Users, Stuart Clark
You may want to look at TimescaleDB, which is a general-purpose time-series database built on top of PostgreSQL.
It is also possible to use TimescaleDB as long-term storage for Prometheus metrics, as is explained in this design document: