Giter VIP home page Giter VIP logo

rootless-podman-for-prometheus-grafana's Introduction

Rootless-Podman-For-Prometheus-Grafana

Status: Not working

##Contains a set of bash scripts to enable the running and installation of Node Exporter, Prometheus and Grafana as rootless containers for Podman on Fedora 31

What do the scripts do

1 Show secure examples of how to run node-exporter, prometheus and grafana as containers via podman without using the root user on the host(rootless podman) and running a non-root user inside the container and making sure that non-root user is visible outside the container as appropriate
2 Shows how to use podman to generate systemd service files for node-exporter,prometheus and grafana
3 Shows how to run node-exporter,prometheus and grafana as systemd services tied to the non-root user account(i.e systemctl --user)

Dependencies

  • Podman must be available
  • Podman User namespaces must be enabled
  • Access to Repos for Base Images and Files
  • User running scripts must have sudo access(user does not have to be the non-root user podman will run containers with)
  • Grafana script required buildah

Node_Exporter

Run sudo nodeexporter.sh

Prometheus

Run sudo prometheus.sh

Grafana

Run sudo grafana.sh

Possible Issues

  • Error: opening file cpu.max for writing: Permission denied: OCI runtime permission denied error
    Likely Solution - containers/podman#7959

  • Error: Permission Denied on Sudo systemctl --user
    Likely Solution - https://access.redhat.com/solutions/4661741

  • Error: Permission Denied on a Volume Mount in Container due to SELinux
    Likely Solution - Add a :Z to volume string for an selinux relabel see prometheus.sh for sample

  • Error: Selinux Issue for Systemd
    sudo setsebool -P container_manage_cgroup on

rootless-podman-for-prometheus-grafana's People

Contributors

mooyeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.