Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Devops Exercises | 43,460 | 4 days ago | 14 | other | Python | |||||
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions | ||||||||||
Devops Resources | 6,995 | 4 days ago | 13 | Groovy | ||||||
DevOps resources - Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP | ||||||||||
Promscale | 1,323 | 7 | 5 days ago | 80 | April 23, 2021 | 133 | apache-2.0 | Go | ||
[DEPRECATED] Promscale is a unified metric and trace observability backend for Prometheus, Jaeger and OpenTelemetry built on PostgreSQL and TimescaleDB. | ||||||||||
Query Exporter | 350 | 14 days ago | 36 | February 18, 2022 | 25 | gpl-3.0 | Python | |||
Export Prometheus metrics from SQL queries | ||||||||||
Sql_exporter | 281 | 2 years ago | November 28, 2017 | 43 | mit | Go | ||||
Database agnostic SQL exporter for Prometheus | ||||||||||
Sql_exporter | 250 | a year ago | 8 | July 15, 2022 | 17 | mit | Go | |||
Flexible SQL Exporter for Prometheus. | ||||||||||
Prometheus Sql | 185 | 7 months ago | August 05, 2017 | 13 | bsd-2-clause | Go | ||||
Service that exposes Prometheus metrics for a SQL result set. | ||||||||||
Sql_exporter | 129 | 7 hours ago | 4 | April 15, 2021 | 8 | mit | Go | |||
Database agnostic SQL exporter for Prometheus | ||||||||||
Sqlstats | 121 | 14 | 2 years ago | 13 | June 25, 2021 | 1 | mit | Go | ||
A Go library for collecting sql.DBStats in Prometheus format | ||||||||||
Docker Compose | 112 | 4 days ago | ||||||||
Some examples of docker-compose stacks used at home and at work... |
Use SQL to query instances, domains and more from Prometheus.
Install the plugin with Steampipe:
steampipe plugin install prometheus
Configure the server address in ~/.steampipe/config/prometheus.spc
:
connection "prometheus" {
plugin = "prometheus"
address = "http://localhost:9090"
}
Run steampipe:
steampipe query
Query all the labels in your prometheus metrics:
select
name,
values
from
prometheus_label
> select name, values from prometheus_label
+---------------+----------------------------------------------+
| name | values |
+---------------+----------------------------------------------+
| alertname | ["TotalRequests"] |
| alertstate | ["firing"] |
| reason | ["refused","resolution","timeout","unknown"] |
| interval | ["10s"] |
| version | ["2.30.3","go1.17.1"] |
| code | ["200","302","400","500","503"] |
+---------------+----------------------------------------------+
Query data for a given metric (tables are dynamically created):
select
code,
handler,
value
from
prometheus_http_requests_total
+------+----------------------------+-------+
| code | handler | value |
+------+----------------------------+-------+
| 302 | / | 1 |
| 200 | /-/ready | 1 |
| 200 | /api/v1/alerts | 1 |
| 200 | /api/v1/label/:name/values | 421 |
| 200 | /api/v1/labels | 16 |
| 200 | /graph | 1 |
| 200 | /static/*filepath | 4 |
+------+----------------------------+-------+
Prerequisites:
Clone:
git clone https://github.com/turbot/steampipe-plugin-prometheus.git
cd steampipe-plugin-prometheus
Build, which automatically installs the new version to your ~/.steampipe/plugins
directory:
make
Configure the plugin:
cp config/* ~/.steampipe/config
vi ~/.steampipe/config/prometheus.spc
Try it!
steampipe query
> .inspect prometheus
Further reading:
Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.
help wanted
issues: