Skip to content

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.

License

Notifications You must be signed in to change notification settings

Aiven-Open/aiven-string-replacer-for-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

Usage

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_:

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.

About

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.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages