|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
CodeMirror-promql |
|
|
|
|
================= |
|
|
|
|
[](https://circleci.com/gh/prometheus-community/codemirror-promql) [](./LICENSE) |
|
|
|
|
[](https://www.npmjs.org/package/codemirror-promql) [](https://codecov.io/gh/prometheus-community/codemirror-promql) |
|
|
|
|
[](https://circleci.com/gh/prometheus/codemirror-promql) [](./LICENSE) |
|
|
|
|
[](https://www.npmjs.org/package/codemirror-promql) [](https://codecov.io/gh/prometheus/codemirror-promql) |
|
|
|
|
|
|
|
|
|
## Overview |
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ and autocompletion for PromQL ([Prometheus Query Language](https://prometheus.io |
|
|
|
|
## Where does it come from? |
|
|
|
|
|
|
|
|
|
The authoritative copy of this code lives in `prometheus/prometheus` and is synced to |
|
|
|
|
`prometheus-community/codemirror-promql` on a regular basis by a bot. Please contribute any code changes to the code |
|
|
|
|
`prometheus/codemirror-promql` on a regular basis by a bot. Please contribute any code changes to the code |
|
|
|
|
in https://github.com/prometheus/prometheus/tree/main/web/ui/module/codemirror-promql. |
|
|
|
|
|
|
|
|
|
### Installation |
|
|
|
@ -222,7 +222,7 @@ const promQL = new PromQLExtension().setComplete({ |
|
|
|
|
##### Override the default Prometheus client |
|
|
|
|
|
|
|
|
|
In case you are not satisfied by our default Prometheus client, you can still provide your own. It has to implement the |
|
|
|
|
interface [PrometheusClient](https://github.com/prometheus-community/codemirror-promql/blob/master/src/lang-promql/client/prometheus.ts#L111-L117) |
|
|
|
|
interface [PrometheusClient](https://github.com/prometheus/codemirror-promql/blob/master/src/lang-promql/client/prometheus.ts#L111-L117) |
|
|
|
|
. |
|
|
|
|
|
|
|
|
|
```typescript |
|
|
|
@ -246,4 +246,4 @@ Note: In case this parameter is provided, then the rest of the configuration is |
|
|
|
|
|
|
|
|
|
## License |
|
|
|
|
|
|
|
|
|
Apache License 2.0, see [LICENSE](https://github.com/prometheus-community/codemirror-promql/blob/master/LICENSE). |
|
|
|
|
Apache License 2.0, see [LICENSE](https://github.com/prometheus/codemirror-promql/blob/master/LICENSE). |
|
|
|
|