Skip to content

Commit 228aac2

Browse files
committed
Merge pull request grafana#2857 from jimmidyson/prometheus-datasource
Prometheus fixes
2 parents 73516c0 + 7cadb90 commit 228aac2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/sources/datasources/prometheus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ page_keywords: grafana, prometheus, metrics, query, documentation
88
Grafana includes support for Prometheus Datasources. While the process of adding the datasource is similar to adding a Graphite or OpenTSDB datasource type, Prometheus does have a few different options for building queries.
99

1010
## Adding the data source to Grafana
11-
![](/img/v2/add_Prometheus.jpg)
11+
![](/img/v2/add_Prometheus.png)
1212

1313
1. Open the side menu by clicking the the Grafana icon in the top header.
1414
2. In the side menu under the `Dashboards` link you should find a link named `Data Sources`.

docs/sources/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It provides a powerful and elegant way to create, share, and explore data and da
1010

1111
Grafana is most commonly used for Internet infrastructure and application analytics, but many use it in other domains including industrial sensors, home automation, weather, and process control.
1212

13-
Grafana features pluggable panels and data sources allowing easy extensibility. There is currently rich support for [Graphite](http://graphite.readthedocs.org/en/latest/), [InfluxDB](http://influxdb.org) and [OpenTSDB](http://opentsdb.net). There is also experimental support for [KairosDB](https://github.com/kairosdb/kairosdb), and SQL is on the roadmap. Grafana has a variety of panels, including a fully featured graph panel with rich visualization options.
13+
Grafana features pluggable panels and data sources allowing easy extensibility. There is currently rich support for [Graphite](http://graphite.readthedocs.org/en/latest/), [InfluxDB](http://influxdb.org) and [OpenTSDB](http://opentsdb.net). There is also experimental support for [KairosDB](https://github.com/kairosdb/kairosdb), [Prometheus](http://prometheus.io/), and SQL is on the roadmap. Grafana has a variety of panels, including a fully featured graph panel with rich visualization options.
1414

1515
Version 2.0 was released in April 2015: Grafana now ships with its own backend server that brings [many changes and features](../guides/whats-new-in-v2/).
1616
Version 2.1 was released in July 2015 and added [even more features and enhancements](../guides/whats-new-in-v2-1/).

public/app/plugins/datasource/prometheus/datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function (angular, _, moment, dateMath) {
212212
};
213213

214214
PrometheusDatasource.prototype.testDatasource = function() {
215-
return this.metricFindQuery('*').then(function() {
215+
return this.metricFindQuery('metrics(.*)').then(function() {
216216
return { status: 'success', message: 'Data source is working', title: 'Success' };
217217
});
218218
};

0 commit comments

Comments
 (0)