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.
- Host: GitHub
- URL: https://github.com/aiven-open/aiven-string-replacer-for-grafana
- Owner: Aiven-Open
- License: apache-2.0
- Created: 2022-05-25T13:06:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T08:55:49.000Z (over 2 years ago)
- Last Synced: 2025-01-10T09:15:26.709Z (over 1 year ago)
- Topics: dashboards, opensearch, replace-text
- Language: Go
- Homepage:
- Size: 3.57 MB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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.