Documentation ¶
Index ¶
- func CheckPIDIsRunning(pid int) bool
- func CleanupStandaloneAddressFile(info Args) error
- func CleanupStandalonePIDFile(info Args) error
- func CreateStandaloneAddressFile(info Args) error
- func CreateStandalonePIDFile(info Args) error
- func FindAndKillCurrentPlugin(dir string)
- func RunDummyPluginLocator(address string)
- type Args
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPIDIsRunning ¶ added in v0.156.0
CheckPIDIsRunning returns true if there's a process with the specified PID
func CleanupStandaloneAddressFile ¶ added in v0.156.0
CleanupStandaloneAddressFile attempts to delete standalone.txt from the specified folder. If the file does not exist, the function returns nil.
func CleanupStandalonePIDFile ¶ added in v0.156.0
CleanupStandalonePIDFile attempts to delete pid.txt from the specified folder. If the file does not exist, the function returns nil.
func CreateStandaloneAddressFile ¶ added in v0.156.0
CreateStandaloneAddressFile creates the standalone.txt file containing the address of the GRPC server
func CreateStandalonePIDFile ¶ added in v0.156.0
CreateStandalonePIDFile creates the pid.txt file containing the PID of the GRPC server process
func FindAndKillCurrentPlugin ¶ added in v0.156.0
func FindAndKillCurrentPlugin(dir string)
FindAndKillCurrentPlugin kills the currently registered plugin, causing grafana to restart it this time pointing to our new host.
func RunDummyPluginLocator ¶
func RunDummyPluginLocator(address string)
Types ¶
type Args ¶
func (Args) StandaloneAddressFilePath ¶ added in v0.156.0
StandaloneAddressFilePath returns the path to the standalone.txt file, which contains the standalone GRPC address
func (Args) StandalonePIDFilePath ¶ added in v0.156.0
StandalonePIDFilePath returns the path to the pid.txt file, which contains the standalone GRPC's server PID