graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.89k stars 1.26k forks source link

[Q]missed function in grafana GUI. #2731

Closed Trolls closed 2 years ago

Trolls commented 2 years ago

Hi,

I'm running grafana server, with go-carbon and graphite-web (last version for all) From the graphite documentation 1.18, i can see that the function "aggregateWithWildcards" exists, but from my grafana GUI, in function list, i can choose only "AggregateLine"

I don't understand what happen.

Many thanks for help,

deniszh commented 2 years ago

Graphite has functions API to list supported functions with parameters - https://graphite.readthedocs.io/en/latest/functions.html#function-api Please check if your installation list "aggregateWithWildcards" in "/functions?pretty=1" If yes - then Grafana not using this info for some reason, but it's better to open issue with Grafana then. Also, Grafana function list is only for editor purposes, and if it's really supported by your graphite installation you can use it.

Trolls commented 2 years ago

the command: curl -s "http://graphite/functions?pretty=1" return nothing. the webpage http://graphite/functions is not available. An other way to download other functions?

deniszh commented 2 years ago

Instead of http://graphite you should put your graphite URL. You can get it from Grafana datasource parameters

Trolls commented 2 years ago

Oh, sorry...

<!-- Copyright 2008 Orbitz WorldWide

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->

<html>
  <head>
    <title>Graphite Browser</title>
  </head>

<frameset rows="60,*" frameborder="1" border="1">
  <frame src="/browser/header/" name="Header" id='header' scrolling="no" noresize="true" />

    <frame src="/composer/?pretty=1" name="content" id="composerFrame"/>

  </frameset>
</html>

then, how can i install all of these functions?

deniszh commented 2 years ago

That's not right url either. Could you please post full url here? You don't need to install anything, functions will just work if you enter them manually instead of using auto suggestions

deniszh commented 2 years ago

You should add /functions?pretty=1 to your graphite URL. But again, it's only cosmetics, if you enter aggregateWithWildcards( with proper parameters in query field it should work.

Trolls commented 2 years ago

no more datas:


[root@vm-grafana ~]# curl -s "http://192.168.x.xx/functions/aggregateWithWildcards"
or
[root@vm-grafana ~]# curl -s "http://192.168.x.x/functions/aggregateWithWildcards?pretty=1"

<!-- Copyright 2008 Orbitz WorldWide

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->

<html>
  <head>
    <title>Graphite Browser</title>
  </head>

<frameset rows="60,*" frameborder="1" border="1">
  <frame src="/browser/header/" name="Header" id='header' scrolling="no" noresize="true" />

    <frame src="/composer/?" name="content" id="composerFrame"/>

  </frameset>
</html>
stale[bot] commented 2 years ago

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.