aiven-string-replacer-for-grafana

command module
v0.0.0-...-4c695c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL