An open API service indexing awesome lists of open source software.

https://github.com/aiven-open/aiven-string-replacer-for-grafana

Small tool that replaces strings in marshalled dashboards. It is handy if you want to replace a metric expression that occurs more than once or if a metric was renamed upstream.
https://github.com/aiven-open/aiven-string-replacer-for-grafana

dashboards opensearch replace-text

Last synced: 6 months ago
JSON representation

Small tool that replaces strings in marshalled dashboards. It is handy if you want to replace a metric expression that occurs more than once or if a metric was renamed upstream.

Awesome Lists containing this project

README

          

# aiven-string-replacer-for-grafana

## Reason

`aiven-string-replacer-for-grafana` is a small tool that replaces strings in marshalled dashboards.
It is handy if you want to replace a metric expression that occurs more than once or if a metric was renamed upstream.

## Installing

```bash
go install github.com/aiven/aiven-string-replacer-for-grafana
```

## Usage
```bash
Usage of aiven-string-replacer-for-grafana:
-apikey string
Grafana api key (required)
-dry
Just show diffs without saving
-from string
Replace from (required)
-overwrite
Overwrite dashboard on conflict (default true)
-retries int
Retries when grafana the grafana api (default 3)
-to string
Replace to (required)
-uid string
Dashboard uid to process (required)
-url string
Grafana url (required)
```

For example, if you wish to rename metrics that start with `elasticsearch_` to metrics that start with `opensearch_`:

```bash
aiven-string-replacer-for-grafana -apikey [...] -url https://my-grafana.org/ -from elasticsearch_ -to opensearch_ -uid [...]
```

## License
`aiven-string-replacer-for-grafana` is licensed under the Apache license, version 2.0. Full license text is available in the LICENSE file.

Please note that the project explicitly does not require a CLA (Contributor License Agreement) from its contributors.

## Contact
Bug reports and patches are very welcome, please post them as GitHub issues and pull requests at https://github.com/aiven/aiven-string-replacer-for-grafana . To report any possible vulnerabilities or other serious issues please see our security policy.

## Disclaimer

Grafana, Elasticsearch and OpenSearch are trademarks and property of their respective owners. All product and service names used in this website are for identification purposes only and do not imply endorsement.