hyperlink – How to alias a long URL in Grafana?

I have a Grafana table with several links, which are long. I want to provide an alias for these links so all the user sees is something short like “Foobar”. I’ve tried going into the settings for the column I’m trying to change, using “Value Mappings -> Value to Text” and then swapping the link for “Foobar”. However, this doesn’t work because:

  1. Grafana tries to hyperlink to something called “foobar” (it’s not an alias)
  2. I can seemingly only change one link at a time, not every link in the column.

Is there any way around this?

monitoring – Netdata, prometheus and grafana – why recommended in this constellation?

Currently I do setup monitoring-service for our Server.
I’ve found some articles, which recommend to use: Netdata, prometheus and grafana

So I wonder what are the benefits to use all three of them.
Can anybody explain it to me, why prometheus and grafana is recommended, if it’s seems that netdata do the same stuff as those both?

Even at the netdata-documentations, there are an article about the setup for this: https://learn.netdata.cloud/docs/agent/backends/prometheus/#filtering-metrics-sent-to-prometheus

What are the benefits of this constellation?

Grafana behind Nginx reverse proxy ignores dashboards in provisioning

I’m setting up a docker-compose that configures grafana behind a nginx reverse proxy.

I can reach grafana though the reverse proxy, but it does not show the dashboards that I’ve put into etc/grafana/provisioning/datasources/. If I visit localhost:3000 directly, the dashboards are showing and working properly. So aside from the dashboards, everything works (including datasources).

How can it be that I get a different version/instance of grafana when I go through the reverse proxy?

grafana.ini:

(server)
protocol = http
http_port = 3000
domain = localhost
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true

nginx.config:

http {
    server {
        listen 80;
        root /usr/share/nginx/www;
        index index.html index.htm;

        location /grafana/ {
            proxy_pass http://grafana:3000/;
        }
    }
}

docker-compose.yml

reverse-proxy:
    container_name: reverse-proxy
    image: reverse-proxy
    build: ./reverse_proxy
    volumes:
      - ./reverse_proxy/nginx.conf:/etc/nginx/nginx.conf
    depends_on:
      - grafana
    ports:
      - 80:80
      - 443:443

  grafana:
    container_name: grafana
    image: grafana/grafana:master-ubuntu
    volumes:
      - ./volume_data/grafana:/var/lib/grafana
      - ./grafana:/etc/grafana/
    ports:
      - 3000:3000

And the grafana file structure:

-grafana
  grafana.ini
  -provisioning
    -dashboards
      dashboards.yml
      dashboard1.json
      dashboard2.json
    -datasources
      datasources.yml

linux – How to stop/disable grafana server starting on boot?

I have installed two instances of grafana on my local network. Now I want to disable one of them.
systemctl stop grafana-server just work until a reboot. How to completely stop the server from starting on boot?

Suddenly the internet is filled with tutorials how to start the server, but not real explanation how to completely stop it. I spent half an hour to find it. I will leave this question with an own answer because surely somebody will face this problem in the future.

Influx + Grafana: Subtract values from two queries

I’m using iobroker to collect data from my smart meter and photovoltaic system and write it to influxdb.
Now I’m struggeling with displaying some of the data in grafana.

I have the following two queries:

Query1: Select Last(value) from photovoltaic WHERE $timeFilter
Query2: Select Max(value)-Min(value) from smartmeter WHERE $timeFilter

How can I subtract the result from Query2 and Query1 and display it?

versions:
influxdb/stable,now 1.6.4-1+b22
grafana/stable,now 7.3.5

Thanks for your help

Sintaxsis para Variables de Google Spreadsheets en Grafana

¡Gracias por contribuir en StackOverflow en español con una respuesta!

  • Por favor, asegúrate de responder a la pregunta. ¡Proporciona información y comparte tu investigación!

Pero evita

  • Pedir ayuda o aclaraciones, o responder a otras respuestas.
  • Hacer declaraciones basadas en opiniones; asegúrate de respaldarlas con referencias o con tu propia experiencia personal.

Para obtener más información, consulta nuestros consejos sobre cómo escribir grandes respuestas.

data – Grafana development – Stack Overflow em Português

Anybody here have any idea how to use eChart to build a grafana plugin for data visulizations? I’ve imported echarts-for-react but I’m having trouble on showing the graphic on the panel.

Ps.:
Grafana 7.x panels are ReactJS components.

Thank you all!