[prometheus-users] Re: Is it possible to use prometheus in such a scenario

2022-02-23 Thread Brian Candler
What do you mean by "querying with a different hostname"? Some Prometheus exporters accept URL query parameters to control what they do, e.g. http://localhost:9115/probe*?module=http&target=foo* That's a perfectly valid thing to do. The prometheus server can specify these query parameters using

[prometheus-users] Re: Is it possible to use prometheus in such a scenario

2022-02-22 Thread Robert Flocks
Thanks for the answer, I meant that I already have a SQL database with the required data. And now, when using some kind of sql exporter, is it possible to configure the config for each metric once, but so that when querying with a different hostname, the sql query changes? Maybe it looks like t

[prometheus-users] Re: Is it possible to use prometheus in such a scenario

2022-02-22 Thread Brian Candler
Prometheus is not a SQL database: it's a time series database and has its own query language, PromQL. Each timeseries is uniquely identified by a metric name (which describes the type of thing you're measuring) and a set of labels (which taken together identify one particular instance of that t