monitor

[!NOTE|label:references]

code pool

prometheus

[!NOTE|label:references:]

prometheus architecture

grafana

environment

[!TIP]

  • reference Do not use environment variables to add new configuration settings. Instead, use environmental variables to override existing options.

To override an option: ```bash GF__ ```

If you need to specify the version of a plugin, then you can add it to the `GF_INSTALL_PLUGINS` environment variable. Otherwise, the latest is used. For example: ```bash -e "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5" ```

  • user id changes

    Version
    User
    User ID

    < 5.1

    grafana

    104

    >= 5.1

    grafana

    472

  • path

    SETTING
    DEFAULT VALUE

    GF_PATHS_CONFIG

    /etc/grafana/grafana.ini

    GF_PATHS_DATA

    /var/lib/grafana

    GF_PATHS_HOME

    /usr/share/grafana

    GF_PATHS_LOGS

    /var/log/grafana

    GF_PATHS_PLUGINS

    /var/lib/grafana/plugins

    GF_PATHS_PROVISIONING

    /etc/grafana/provisioning

  • environment

    ENVIRONMENT VARIABLE
    EXAMPLE

    GF_INSTALL_PLUGINS

    grafana-kubernetes-app,grafana-piechart-panel,http://my.com/plugin.zip

    GF_PATHS_PLUGINS

    /data/grafana/plugins

    GF_SERVER_ROOT_URL

    https://grafana.domain.com

    GF_SECURITY_ADMIN_PASSWORD

    admin

    GF_DEFAULT_INSTANCE_NAME

    -

    GF_SECURITY_ADMIN_USER

    -

    GF_DATABASE_TYPE

    mysql

    GF_DATABASE_HOST

    -

setup

  • ns

  • sa

  • pv & pvc

  • deploy

  • svc

  • ingress

dashboard

[!NOTE|label:references:]

kubernetes cluster monitoring

@deprecated

  • install via grafana-cli

  • setup

grafana-plugin-1.gif

cluster

node

namespace

pod

jenkins

grafana settings

  • cluster

    • or

  • instance

  • node

    • or

  • namespace

  • pod

api

references:

reset password

set grafana admin password

check if grafana can be accessed

create datasoure in grafana

create TelegrafHost dashboard in grafana using jsonfile

create DockerMetrics dashboard in grafana using jsonfile

create JVM dashboard in grafana using jsonfile

add-ons

metric server

[!NOTE|label:references:]

sample yaml

q&a

kube-state-metrics

[!INFO|label:references:]

installation

scripts

  • one-line

Last updated

Was this helpful?