Closed rdcm closed 3 years ago
Hi @rdcm ,
If you open http://localhost/functions?pretty=1 - is it shows your function?
Hi @deniszh
Yes, the list of functions contains following:
"upper": {
"description": "Custom function that changes series names to UPPERCASE",
"function": "upper(seriesList)",
"group": "Custom",
"module": "graphite.functions.custom.to_upper",
"name": "upper",
"params": [
{
"name": "seriesList",
"required": true,
"type": "seriesList"
}
]
},
How can I use it with grafana? In my mind upper()
should be listed here:
According to https://grafana.com/blog/2018/01/11/graphite-1.1-teaching-an-old-dog-new-tricks/ Grafana should use exact that API to get list of functions - https://graphite.readthedocs.io/en/1.1.1/functions.html#function-api Which Graphite version you have defined in Graphite datasource - https://grafana.com/docs/grafana/latest/datasources/graphite/ ? Should be 1.1.x or exact version, not 1.0.x or 0.9.x
Should be 1.1.x or exact version, not 1.0.x or 0.9.x
Specified 1.1.x version:
Then I can only suggest open issue in Grafana repo - https://github.com/grafana/grafana because according their docs it should work 🤷
Thanks for the additional info, I need a little bit more time to investigate this.
If you're usingGraphite 1.7 it might be caused by a bug that should get fixed in Grafana 8: https://github.com/grafana/grafana/pull/32305
If you're using Graphite <1.7 you might be affected by a different bug: https://github.com/grafana/grafana/pull/31680. If your data source was created in Grafana <7.4.0 it might be incorrectly recognised as Graphite 0.9 (with no custom functions support) even when data source config shows 1.1.x. The easiest way to fix it is to change the version of Graphite datasource from 1.1.x to something else and then change it back to 1.1.x.
Right. Looks like I need to carve out time and release 1.1.8, though. Thanks for info, @ifrost !
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi!
I'm trying to add a custom function to graphite as described in the documentation, and after all steps added function not displayed in grafana. https://graphite.readthedocs.io/en/latest/functions.html#function-plugins
docker-compose.yml
:to_upper.py
:As mentioned in the documentation:
Should I explicitly adding my function to
FUNCTION_PLUGINS
?Thanks.