The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/public/app/plugins/datasource/prometheus/plugin.json

100 lines
1.9 KiB

{
"type": "datasource",
"name": "Prometheus",
"id": "prometheus",
"category": "tsdb",
"routes": [
{
"method": "POST",
"path": "api/v1/query",
"reqRole": "Viewer"
},
{
"method": "POST",
"path": "api/v1/query_range",
"reqRole": "Viewer"
},
{
"method": "POST",
"path": "api/v1/series",
"reqRole": "Viewer"
},
{
"method": "POST",
"path": "api/v1/labels",
"reqRole": "Viewer"
},
{
"method": "POST",
"path": "api/v1/query_exemplars",
"reqRole": "Viewer"
},
{
"method": "GET",
"path": "/rules",
"reqRole": "Viewer"
},
{
"method": "POST",
"path": "/rules",
"reqRole": "Editor"
},
{
"method": "DELETE",
"path": "/rules",
"reqRole": "Editor"
Alerting: Add support to distinguish Prometheus datasource subtypes (Mimir, Cortex and Vanilla Prometheus) (#46771) * Add basic UI for custom ruler URL * Add build info fetching for alerting data sources * Add keeping data sources build info in the store * Use data source build info to construct data source urls * Remove unused code * Add custom ruler support in prometheus api calls * Migrate actions * Use thunk condition to prevent multiple data source buildinfo fetches * Unify prom and ruler rules loading * Upgrade RuleEditor tests * Upgrade RuleList tests * Upgrade PanelAlertTab tests * Upgrade actions tests * Build info refactoring * Get rid of lotex ruler support action * Add prom ruler availability checking when the buildinfo is not available * Add rulerUrlBuilder tests * Improve prometheus data source validation, small build info refactoring * Change prefix based on Prometheus subtype * Use the correct path * Revert config routing * Add deprecation notice for /api/prom prefix * Add tests to the datasource subtype * Remove custom ruler support * Remove deprecation notice * Prevent fetching ruler rules when ruler api is not available * Add build info tests * Unify naming of ruler methods * Fix test * Change buildinfo data source validation * Use strings for subtype params and unveil mimir * organise imports * frontend changes and wordsmithing * fix test suite * add a nicer verbose message for prometheus datasources * detect Mimir datasource * fix test * fix buildinfo test for Mimir * shrink vectors * add some code documentation * DRY prepareRulesFilterQueryParams * clarify that Prometheus does not support managing rules * Improve buildinfo error handling Co-authored-by: gotjosh <josue.abreu@gmail.com> Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
3 years ago
},
{
"method": "DELETE",
"path": "/config/v1/rules",
"reqRole": "Editor"
},
{
"method": "POST",
"path": "/config/v1/rules",
"reqRole": "Editor"
}
],
"includes": [
{
"type": "dashboard",
"name": "Prometheus Stats",
"path": "dashboards/prometheus_stats.json"
},
{
"type": "dashboard",
"name": "Prometheus 2.0 Stats",
"path": "dashboards/prometheus_2_stats.json"
},
{
"type": "dashboard",
"name": "Grafana Stats",
"path": "dashboards/grafana_stats.json"
}
],
"metrics": true,
"alerting": true,
"annotations": true,
"backend": true,
"queryOptions": {
"minInterval": true
},
"info": {
"description": "Open source time series database & alerting",
"author": {
"name": "Grafana Labs",
"url": "https://grafana.com"
},
"logos": {
"small": "img/prometheus_logo.svg",
"large": "img/prometheus_logo.svg"
},
"links": [
{
"name": "Learn more",
"url": "https://prometheus.io/"
}
]
}
}